Bind configuration problem

Asked by Jonathan Gossage

I have a Bind configuration problem accessing a Bind 9.4 server on Ubuntu 8.04 from both a Ubuntu 9.04 client and from the machine hosting the DNS server.

If I run the following command
dig cronus

I get the following error

jonathan@cronus:~$ dig cronus

; <<>> DiG 9.5.1-P2 <<>> cronus
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 15786
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;cronus. IN A

;; Query time: 620 msec
;; SERVER: 192.168.1.10#53(192.168.1.10)
;; WHEN: Wed Jul 15 15:11:29 2009
;; MSG SIZE rcvd: 24

The system does not properly resolve the short hostname and returns a NXDOMAIN error. If I enter
dig cronus.gossage.ca
It works properly.

Here is the zone file for gossage.ca
$ttl 38400
gossage.ca. IN SOA aristotle.gossage.ca. hostmaster.gossage.ca. (
   2009071500
   10800
   3600
   604800
   38400 )
gossage.ca. IN NS 192.168.1.10.
aristotle.gossage.ca. IN A 192.168.1.10
cronus.gossage.ca. 24H IN A 192.168.1.11
gossage.ca. 24H IN MX 10 aristotle.gossage.ca.

and here is the /etc/resolv.conf file on the client
nameserver 192.168.1.10
domain gossage.ca

Can anyone spot what I have done incorrectly?

Thanks

Jonathan Gossage

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu bind Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Christophe Painchaud (dash-ionblast) said :
#1

Hi,

Dig doesn't use the 'domain' part of resolv.conf as far as I know.

Can you help with this problem?

Provide an answer of your own, or ask Jonathan Gossage for more information if necessary.

To post a message you must log in.