Author Topic: DNS and FQDN resolution  (Read 1433 times)

zinfo

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
DNS and FQDN resolution
« on: July 28, 2009, 07:41:55 pm »
I have a weird problem...

I setup a .local domain, like mydomain.local with host inside.

When I try to ping the FQDN, I dont have any ip address translation, if I ping the short name I get the IP.
Examples 1 (FQDN) :
$ ping prt1.mydomain.local
ping: unknown host prt1.mydomain.local

Examples 2 :
$ ping prt1
PING prt1.mydomain.local (172.16.125.10) 56(84) bytes of data.
64 bytes from prt1.mydomain.local (172.16.125.10): icmp_seq=1 ttl=64 time=4.63 ms
64 bytes from prt1.mydomain.local (172.16.125.10): icmp_seq=2 ttl=64 time=0.347 ms
^C
--- prt1.mydomain.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1003ms
rtt min/avg/max/mdev = 0.347/2.491/4.636/2.145 ms

Examples 3 (dig with FQDN) :
$ dig prt1.mydomain.local

; <<>> DiG 9.5.0-P2 <<>> prt1.mydomain.local
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49975
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;prt1.mydomain.local.      IN   A

;; ANSWER SECTION:
prt1.mydomain.local.   259200   IN   A   172.16.125.10

;; AUTHORITY SECTION:
mydomain.local.      259200   IN   NS   ns.mydomain.local.

;; ADDITIONAL SECTION:
ns.mydomain.local.      259200   IN   A   127.0.0.1

;; Query time: 7 msec
;; SERVER: 172.16.125.1#53(172.16.125.1)
;; WHEN: Tue Jul 28 13:39:28 2009
;; MSG SIZE  rcvd: 83



My resolv.conf contain :
domain mydomain.local
search mydomain.local
nameserver 172.16.125.1

Other info : eBox v 1.2
Client machine : Linux

Thanks for your help.
---
Jean-Philippe Blais
ZEA Informatique inc.
http://www.zinfo.ca