Re: resolv.conf, bind9 and unresolvable local address



Burkhard Ott wrote:
Am Tue, 25 Mar 2008 12:29:25 +0100 schrieb peter pilsl:


thnx and your are right. I changed the zone-file but it did not solve my original problem.

Try the following:

host $NAME_from_your_zone $IP_of_your_DNS

Do you get a correct answer, if so use tcpdump and check that you get the
right DNS.



thxn for your answer. I tried what you recommended and to make it short: I didnt get any new information. host-command gives correct answers, but when doing a "ping imap.local" my DNS or another DNS isnt even queried (tcpdump on lo and eth0) !!

here my outputs. I would be very happy if you could look over them to see if I missed something. thnx.



host gives me the correct answer in any settings:

# host imap.local
imap.local is an alias for phoenix.local.
phoenix.local has address 10.1.1.214

# host imap.local 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
imap.local is an alias for phoenix.local.
phoenix.local has address 10.1.1.214

# host imap.local 10.1.1.214
Using domain server:
Name: 10.1.1.214
Address: 10.1.1.214#53
Aliases:
imap.local is an alias for phoenix.local.
phoenix.local has address 10.1.1.214


if running

#tcpdump -i lo port 53

I see the queries:

12:03:31.412303 IP localhost.33026 > localhost.domain: 22783+ A? imap.local. (28)
12:03:31.412682 IP localhost.domain > localhost.33026: 22783* 2/1/0 CNAME phoenix.local., (84)
12:03:31.413606 IP localhost.33027 > localhost.domain: 54842+ AAAA? phoenix.local. (31)
12:03:31.413810 IP localhost.domain > localhost.33027: 54842* 0/1/0 (81)
12:03:31.413976 IP localhost.33028 > localhost.domain: 48801+ MX? phoenix.local. (31)
12:03:31.414089 IP localhost.domain > localhost.33028: 48801* 0/1/0 (81)


when I run

#ping imap

I see my server querying for imap.local !!!

12:04:07.251898 IP phoenix.local.33028 > phoenix.local.domain: 24422+ A? imap.local. (28)
12:04:07.252240 IP phoenix.local.domain > phoenix.local.33028: 24422* 2/1/0 CNAME phoenix.local., (84)
12:04:07.252579 IP phoenix.local.33028 > phoenix.local.domain: 52112+ PTR? 214.1.1.10.in-addr.arpa. (41)
12:04:07.252754 IP phoenix.local.domain > phoenix.local.33028: 52112* 1/1/1 PTR[|domain]
12:04:08.257814 IP phoenix.local.33028 > phoenix.local.domain: 10046+ PTR? 214.1.1.10.in-addr.arpa. (41)
12:04:08.258095 IP phoenix.local.domain > phoenix.local.33028: 10046* 1/1/1 PTR[|domain]

and when I run

#ping imap.local

no traffic at all on lo nor on eth0 - not on port 53 and not on any other port !!!


I just dont get this !! This is kind of weird !! and starts to drive my crazy !!

thnx,
peter



.



Relevant Pages

  • Re: Wanting to place my hosted web on my server
    ... Port 80 is the default port for web services, ... Another method for unique website identification is the hostheader. ... IIS TIPS - Host Header - What is it: ... You mentioned earlier you installed DNS but wasn't ...
    (microsoft.public.windows.server.dns)
  • Re: Telnet session with fixed TNAnnn: name?
    ... the source was resolved from DNS, the port # didn't interfere. ... You did not mention the IP stack ... >> we put the PC names into DNS. ... > difference between specifying the PC host names in DNS and entering them ...
    (comp.os.vms)
  • Re: Unable to make DNS requests from inside the DMZ
    ... default gateway is the PIX's "inside" port, and the DMZ ... client's default gateway is the PIX's "dmz" port. ... In order for the DMZ client to be able to access HTTP and DNS ports on ... access-list dmzin permit tcp host 172.30.1.3 host 172.30.1.159 eq www ...
    (comp.dcom.sys.cisco)
  • Re: nameserver banging on my door
    ... DNS operates on port 53 TCP and UDP but normally DNS requests will be ... seen on UDP to port 53 *FROM* some host. ...
    (comp.os.linux.security)
  • Re: cvs problem with iptables
    ... > Send in tcpdump ... When I ran this tcpdump port 2401 and port 2402 it catched ... host linux.sunupdelhi.net unreachable - admin prohibited ... 14:35:51.660700 arp who-has linux.sunupdelhi.net tell server1.sunupdelhi.net ...
    (Fedora)