Firstly, yes i am using solaris but it is more of a general query anyway!
Could someone clear something up about DNS for me...
I understand how DNS works basically. You have a name mapped to an IP address. When you type this name then your machine asks the DNS server what IP the name is mapped to and the DNS server then returns the IP to the requesting machine.
Easy.
However, how are records added to the DNS server in the first place? I know you can do it manually but what about automatically?
My problem is basically i have a Solaris 8 machine which I want to assign the hostname 'sgbe11' to. I configure the necessary files: /etc/hostname.<interface>, dhcp.<interface>, /etc/nodename, /etc/nsswitch.conf, /etc/resolv.conf and then run the command #hostname sgbe11. At this point all is well but as soon as i reboot then the interface successfully retrieves an IP from the dhcp server but always sets the hostname to 'unknown'.
Once i get in to the console i can see that an entry has been added to /etc/hosts... xxx.xxx.xxx.xxx unknown
If i subsitute unknown for sgbe11 all works ok but this obviously isn't what i want.
If i run nslookup or dig sgbe11 then i get the following:
Code:
; <<>> DiG 9.2.4 <<>> sgbe11
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 34056
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;sgbe11. IN A
;; AUTHORITY SECTION:
. 6316 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2005112201 1800 900 604800 86400
;; Query time: 3 msec
;; SERVER: 10.95.0.4#53(10.95.0.4)
;; WHEN: Wed Nov 23 10:23:38 2005
;; MSG SIZE rcvd: 99
I'm not sure if thats right or not? Should it be finding an entry or not? Any help on fixing or debuging the problem would be great!