Visit Our UNIX and Linux User Community

Hosts file ignored, no DNS entry but still routes!!

Thread Tools Search this Thread
Special Forums IP Networking Hosts file ignored, no DNS entry but still routes!!
# 1  
Old 05-28-2009
Hosts file ignored, no DNS entry but still routes!!

Hi all,

I have an entry in my hosts file on a server called tractor as follows:

Code: digger-m2m digger

I have a DNS server configured but it doesn't seem to know about digger. When I do an nslookup on tractor for digger i get the following:

Code: can't find digger: Non existant host/domain

There are 2 interfaces on digger - 1 is an OAM interface and the other is a machine to machine interface. The address is the machine to machine interface and the OAM interface has address

If I ping digger from tractor I can see by running a snoop on digger that I am pinging the 172 address but clearly my hosts file has digger listed at the 10 address.

I'm begining to wonder if tractor has somehow cached an association between digger and the 172 address. If so does anybody know how to clear it, or know why I'm getting the above behaviour with my hosts file seemingly being ignored?


-----Post Update-----

I've just discovered that if I change my host entry on tractor to have digger_new at the end of it rather than just digger and then I ping digger_new it pings the right address.

So why does it not like digger? hmmmmmmmmm

Previous Thread | Next Thread
Test Your Knowledge in Computers #915
Difficulty: Easy
In Javascript, ''.slice(); returns UNIX.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

How to find which internal hosts still using my DNS service ? Please help

Hello guys, I am new to AIX . I have two AIX v5.3 servers running BIND DNS service on them. The plan is to shut down only the DNS service on them, but in order to do that I have to determine which internal hosts are still using the servers to resolve DNS queries. Can you please advice on... (2 Replies)
Discussion started by: tihomirvs
2 Replies

2. AIX

Use of /etc/hosts files in resolving the dns name

Hello, For what purpose /etc/hosts file is used.I mean how any request coming to a DNS server or a switch would know that which name and ip are configured in /etc/hosts files of a server? Best regards, Vishal (3 Replies)
Discussion started by: admin_db
3 Replies

3. Shell Programming and Scripting

Checking crontab job entry in 3 different hosts

Hi Gurus, I am trying to connect to remote host from current host to check crontab entries. I have started like this ssh -n -l db2psp ". ~/.profile >/dev/null 2>/dev/null; cd log ;ls | wc -l" I got this error ? ssh: connect to host port 22:... (1 Reply)
Discussion started by: rocking77
1 Replies

4. Red Hat

entry in /etc/hosts

Hello all, Im on Red Hat Enterprise Server 4.5 Im wondering if it is possible to disable the need to add every IP machine entry in the file /etc/hosts to allow it to connect to Red hat? Im getting "where are you?" message. This is solved adding the machine ip where Im working. Thanks in... (1 Reply)
Discussion started by: mig28mx
1 Replies

5. Solaris

Which lookup tool query both hosts and DNS server?

As i understand, host/nslookup/dig only query DNS server to resolve name to ip. ping can query both, but it seems if ping is blocked, ping won't return IP. traceroute can query both, but i am not able to test if traceroute is blocked, What is the result? Neither ping/traceroute is... (3 Replies)
Discussion started by: honglus
3 Replies

6. UNIX for Dummies Questions & Answers

Hosts.deny entry

Hello I want to block individuals who attempt to use ssh to loggon to one of my machines from a certain IP address. I added the following entry in hosts.deny. Will the entry do what I want to do? ssh: (3 Replies)
Discussion started by: mojoman
3 Replies

7. Shell Programming and Scripting

delete entry from /etc/hosts file ?

Hi there I have a requirement where i have to globally remove a hosts file entry from all boxes e.g. my_server1 normally for 'in-line' editing of files without passing it out to another fle and copying it back etc which is messy, Ive been using the fantastic "perl -pi... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

8. Solaris

/etc/nsswitch.conf hosts ldap dns

Hi all Is there any reason to have "hosts ldap dns" as line in /etc/nsswitch.conf ? My understanding is that ldap does not contain any host information..(?) Best regards...Ludwig (1 Reply)
Discussion started by: ludwig
1 Replies

9. UNIX for Advanced & Expert Users

Virtual Hosts and Alteon DNS conflicts

Hi, This is more of a verification rather than a question of technical nature. This is based on solaris 10 machine Could we use Virtual hosts (within our hosts file): virtual_host_name host_A (note: - host_A is also in our DNS server entry) And... (0 Replies)
Discussion started by: jackola
0 Replies

10. IP Networking

dns and hosts file

ok i have a question now when i add machines on network that are running unix do i add them in the /etc/hosts file also include them in dns (4 Replies)
Discussion started by: rmuhammad
4 Replies

Featured Tech Videos