LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-10-2003, 12:38 AM   #1
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Rep: Reputation: 15
[named/DNS] How do you create subdomains?


How would you create subdomains (2nd level), the pc1 part?

for ex. pc1.dyn.example.com ?
 
Old 01-10-2003, 06:46 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
you need to get dyn.example.com pointed to your named server as a primary dns and add a few lines to the named config file.
 
Old 01-11-2003, 01:30 AM   #3
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
I guess I should clarify things a bit, I do run my own DNS server (primary) and do have my own domain. I know how to edit the named.conf file so it handles subdomains that are one level (e.g. sub.example.com) but what I don't know is how to do it for the 2nd level, I want to have subdomains (for e.g. xxx.sub.example.com).

Is it done the same way? What would I need to put in the named.conf?
 
Old 01-11-2003, 01:36 AM   #4
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Hi..


You have to add NS entries in particualar Domain file


In example.com file add entries like this.

pc1.dyn.example.com IN NS x.x.x.x
pc1.dyn.example.com IN NS x.x.x.x

other entries as usual

Sidiqu.T


 
Old 01-11-2003, 02:27 AM   #5
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
what is x.x.x.x , is that the ip of the Name Server?
 
Old 01-11-2003, 03:03 AM   #6
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Hi..

Yes it is the IP address of the Name server

siddiqu.T
 
Old 01-11-2003, 05:56 PM   #7
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by siddiqu
Hi..

Yes it is the IP address of the Name server

siddiqu.T
I've tried that but didn't work. Then where are the subdomain'ed entries handled, in the same file or different file?
 
Old 01-12-2003, 09:37 PM   #8
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
If you are on the dns of example.com, put in the zone file(not the named.conf file)...

pc1.dyn IN A x.x.x.x
pc2.dyn IN A y.y.y.y

where x.x.x.x will be the ip address of pc1.dyn.example.com
 
  


Reply



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
Named can't create .pid?!?!? morbo Linux - Networking 11 09-11-2006 02:53 AM
BIND/DNS: Some subdomains resolve, some don't natetheros Linux - Networking 0 04-22-2005 06:36 PM
How do i create named.conf file pkrishna10 Linux - Wireless Networking 2 10-22-2004 12:54 PM
Odd DNS Problem => No Subdomains... papasan Linux - Networking 1 11-17-2003 03:17 PM
named - dns - problems blaci Linux - General 2 07-22-2003 01:32 AM

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

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

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