LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-23-2005, 03:37 AM   #1
wimnat
Member
 
Registered: Dec 2004
Location: Sydney, AU
Distribution: CentOS 5.x, Backtrack
Posts: 72

Rep: Reputation: 16
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!
 
Old 11-23-2005, 03:48 AM   #2
karpi
Member
 
Registered: Oct 2005
Location: Germany
Distribution: Suse
Posts: 134

Rep: Reputation: 15
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
 
Old 11-23-2005, 03:54 AM   #3
wimnat
Member
 
Registered: Dec 2004
Location: Sydney, AU
Distribution: CentOS 5.x, Backtrack
Posts: 72

Original Poster
Rep: Reputation: 16
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....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS problem alvi2 Linux - Networking 3 05-13-2005 05:45 PM
DNS problem please help me bruse Linux - Networking 3 04-05-2005 06:59 AM
Possible DNS Problem? Hootah Linux - Networking 2 07-04-2004 02:12 PM
dns problem socket9001 Linux - Networking 1 06-12-2004 07:52 AM
problem with DNS bglad Linux - Networking 9 10-20-2003 05:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration