Antoine EMERIT wrote:
> Adam McCarthy <(E-Mail Removed)> écrivait
> news:(E-Mail Removed):
>
>
>>Is there a way to flush the DNS cache on a Debian Stable machine?
>>
>>The reason is, I had a domain name put in /etc/hosts but I just recently
>>taken it out to fix things. Only thing is, the system still thinks the
>>domain name is the local machine even though it's a DNS for my external
>>network. I even tried a reboot. Same thing.
>
>
> Reboot should be enough, and so you should have another problem.
>
> Give more information :
>
> - /etc/hosts
> - /etc/resolv.conf
> - bind configuration if any (/etc/bind/named.conf)
> - ...
>
> Regards
This is /etc/hosts:
127.0.0.1 DebianServer localhost DebianServer.ZeroOneNetworks
192.168.1.101 DebianServer.ZeroOneNetworks DebianServer
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
This is /etc/resolv.conf:
nameserver 192.168.1.1
nameserver 207.255.0.135
nameserver 207.255.0.136
I used to have bind but uninstalled it.
Weird thing though. I don't normally put in 192.168.1.1 in my /etc/hosts
but I tried it for the heck of it. Oddly enough once I put in
192.168.1.101 into the /etc/hosts, everything is back to normally. The
very strange part? 192.168.1.1 uses the exact same DNSes, listed in
/etc/resolv.conf. Really weird DNS issue?
|