LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS problem (https://www.linuxquestions.org/questions/linux-networking-3/dns-problem-385746/)

wimnat 11-23-2005 03:37 AM

DNS problem
 
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!

karpi 11-23-2005 03:48 AM

Hello,

there are some tutorials and howtos out there.
I have a working ddns with bind9 and the isc-dhcp server in a linux environment.
Basically you have to configure the dhcp-server to update the dns-entries and to allow the dhcp-server to update these record in the named-configuration.
A good tutorial is included with bind9.

HTH

wimnat 11-23-2005 03:54 AM

Cheers. The problem is that i do have access to the dhcp or dns server so i will have to talk to the sys admin for that and it is not exactly easy. There's always a more important problem than mine.... ;)


All times are GMT -5. The time now is 05:05 PM.