Is it possible to have round-robin DNS with the follwing configuration in /etc/hosts
?
192.168.4.10 shaakunthala.local
192.168.4.20 shaakunthala.local
I'm on Linux.
Is it possible to have round-robin DNS with the follwing configuration in /etc/hosts
?
192.168.4.10 shaakunthala.local
192.168.4.20 shaakunthala.local
I'm on Linux.
I am new to unmanaged VPS servers and in addition IPv6. Is it necessary to include 127.0.0.1 AND ::1 for localhost in /etc/hosts files for IPv6 enabled servers, or is ::1 alone enough?
I've done a default install of dnsmasq. When I run dig, it seems to be using dnsmasq (127.0.0.1), but the results don't include the hostnames included in /etc/hosts.
/etc/hosts:
192.168.1.13 sun
in a terminal:
$ dig sun
; <<>> DiG 9.6-ESV-R4 <<>> sun
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 32131
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;sun. IN A
;; AUTHORITY SECTION:
. 9699 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2011041100 1800 900 604800 86400
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Apr 12 05:20:56 2011
;; MSG SIZE rcvd: 96
in a terminal:
$ dig @localhost sun
; <<>> DiG 9.6-ESV-R4 <<>> @localhost sun
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 43763
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;sun. IN A
;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2011041800 1800 900 604800 86400
;; Query time: 40 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Apr 18 17:15:23 2011
;; MSG SIZE rcvd: 96
I've tried using local and expand-hosts/domain, but can't seem to get either of those working either. My primary goal is to be able to use one machine to host LAN DNS, I don't care if the names wind up being sun or sun.domain, whatever works.
Here is my /etc/resolv.conf
nameserver 127.0.0.1
domain members.linode.com
search members.linode.com
nameserver 72.14.188.5
nameserver 72.14.179.5
and /etc/dnsmasq.conf
domain-needed
bogus-priv
This is all on an ubuntu 10.04 machine if it makes a difference. I have been following this guide: http://www.mythicalbeast.co.uk/linux/dnsmasq_howto.html (though not verbatim since that also sets up DHCP)
There is already by default, and it works (Win 7):
::1 localhost
This also works (testing with ping):
::1 hosta
But when I'm trying to add something non-loopback, it doesn't resolve:
fe80::215:afff:fec6:ea64 realhost
So that I can do:
C:>ping fe80::215:afff:fec6:ea64
Reply from fe80::215:afff:fec6:ea64: time=2ms
But can't go with hostname that I put in hosts:
C:>ping realhost
Ping request could not find host realhost. ...
Any way to add an IPv6 address to hosts in Windows?
How can I re-map one hostname to another, similar to how one would re-map a hostname to an IP in /etc/hosts
?
For instance, how could I map oneheckofalongdomainname.com
to a.com
on my local machine?
Adding an entry into /etc/hosts
won't work as it maps hostnames to IP addresses, whereas I need to map one hostname to another. I'm also unable to use the target domain's IP because it's subject to change.