Networking Forums

Networking Forums > Computer Networking > Linux Networking > Is there a way to flush the DNS cache?

Reply
Thread Tools Display Modes

Is there a way to flush the DNS cache?

 
 
Adam McCarthy
Guest
Posts: n/a

 
      09-03-2005, 06:00 PM
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.
 
Reply With Quote
 
 
 
 
Antoine EMERIT
Guest
Posts: n/a

 
      09-04-2005, 12:41 AM
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
 
Reply With Quote
 
Adam McCarthy
Guest
Posts: n/a

 
      09-04-2005, 04:24 AM
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?

 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      09-04-2005, 05:23 AM
"Adam McCarthy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)

> This is /etc/hosts:
>
> 127.0.0.1 DebianServer localhost DebianServer.ZeroOneNetworks


Should be:
127.0.0.1 localhost
 
Reply With Quote
 
Adam McCarthy
Guest
Posts: n/a

 
      09-04-2005, 06:02 AM
ynotssor wrote:
> "Adam McCarthy" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)
>
>
>>This is /etc/hosts:
>>
>>127.0.0.1 DebianServer localhost DebianServer.ZeroOneNetworks

>
>
> Should be:
> 127.0.0.1 localhost

Also one other error, after a reboot, /etc/resolv.conf is just a blank file.
 
Reply With Quote
 
Ni@m
Guest
Posts: n/a

 
      09-04-2005, 09:22 PM
Hi!! Try 'rndc flush'!!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SMB flush request Charles Windows Networking 0 10-10-2006 03:21 PM
DNS cache McG Wireless Networks 0 01-08-2006 01:30 PM
Is there a way to flush the DNS cache? Adam McCarthy Linux Networking 1 09-06-2005 04:03 PM
dns flush and comcast cable or where's the dns? webnuts4u2 Windows Networking 1 05-19-2004 04:56 AM
Flush DNS RA Isahak Windows Networking 2 11-14-2003 08:45 PM



1 2 3 4 5 6 7 8 9 10 11