I use debian:

 /etc/hostname => static  (meaning my hostname is called static)

and

/etc/hosts     => 127.0.0.1       localhost

and now

traceroute static ==> Traceroute resolves to (xx.xx.xx.30) a very strange and unknown/wrong host.

and

dig static => resloves to the ROOT-Namesevers ...

My Question:

  1. Most likely I need to define in /etc/hosts my hostname to ip adress mapping. that is the cause of the problem. (something like yyy.yyy.yyy.yyy static =>myip to hostname mapping)

  2. But(!!!) I want to understand where traceroute gets this weired IP-Adress. I would be very thankfull if someone can explain how this IP Adress is retrievend and where does it come from

Thank you very much!!! Markus

link|improve this question

feedback

2 Answers

up vote 0 down vote accepted

What's the result when you enter "nslookup static"? That should show you which nameserver is beint used and which record that nameserver has for "static"

link|improve this answer
hello Jannemans, Thanks very much for your help! You fixed it;-) with nslookup I realized that (I have two virutal machines, one is working, the other one had this problem described) had different Name-Servers. And that got me to /etc/reslov.conf where the machine that was not working had this strange IP Adress as "search IP Adress"... Althrough the nameserveras are diffrent, the problem was the wrong "search..." statement... When I commented out that line I got an NXDOMAIN. Now everything is working. Thanks for your help!! – Markus Jul 13 '11 at 6:11
Glad to have nudged you in the right direction :) – Jannemans Jul 13 '11 at 7:28
feedback

Instead of returning NXDOMAIN (this host doesn't exist), your ISP's DNS server is returning the IP of their search page. Try popping open a web browser and going to http://static; my guess is that you'll hit a page saying "we couldn't find 'static' -- did you mean something else?" along with a bunch of ads.

That said, add:

127.0.0.1 static

to your /etc/hosts file, and you should be good to go.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.