LinuxQuestions.org
Visit Jeremy's Blog.
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 11-13-2006, 01:34 AM   #1
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Rep: Reputation: 15
DNS and subdomain


hello,
I have SuSE 10 running on my computer,
i want to set up a domain: faizalita.org, and a subdomain:
dnstest.faizalita.org
when i done setting the named.conf and the zone file,
faizalita.org and dnstest.faizalita.org are accessible through nslookup,
but i can't ping them,
and i can't use apache2 to access both. (i have set the virtual host for
the apache)

what should i do? do i have to open some firewall ports? do i have
to use the reverse file? please give me suggestion,

thank you

faizal
 
Old 11-13-2006, 02:05 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You need to actually assign the IP addresses to an interface with the ifconfig command.
 
Old 11-13-2006, 02:20 AM   #3
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Original Poster
Rep: Reputation: 15
ifconfig?

hmm...i though i just have to do something with named.conf and its zone file,
well, this is what i wrote in named.conf:

Code:
zone "faizalita.org" in {
	type master;
	file "faizalita.org.zone";
};
and here is the zonefile faizalita.org.zone:

Code:
$TTL 1W
ORIGIN faizalita.org.
@		IN SOA	ns1.faizalita.org. admin.faizalita.org. (
				42		; serial (d. adams)
				2D		; refresh
				4H		; retry
				6W		; expiry
				1W )		; minimum

		IN NS		ns1.faizalita.org
		IN A		192.168.1.253
dnstest         IN A            192.168.1.253
ns1             IN A            192.168.1.253
and here is from vhost.conf (apache virtual host)

Code:
<VirtualHost *>
  ServerName faizalita.org
  DocumentRoot /data/http/main/
</VirtualHost>

<VirtualHost *>
  ServerName dnstest.faizalita.org
  DocumentRoot /data/http/dnstest/
</VirtualHost>
but it doesn't work.
 
Old 11-13-2006, 05:34 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I don't see anything wrong with your zone file.

1) Does IP address 192.168.1.253 exist?
2) Does /etc/resolv.conf point to 192.168.1.253?
3) Do all hosts on your network point to 192.168.1.253 for DNS resolution?
4) Is apache started?
5) Use "dig" instead of nslookup to test DNS server
Code:
 dig @192.168.1.253 faizalita.org ns
If you can ping by IP address, then check resolv.conf. If you are unable to ping by ip address, then check ifconfig and firewall settings.

BTW: Your use of the term sub-domain is incorrect. A sub-domain would have a delegation record (ns records) added to the faizalita.org zone that point to dnstest.faizalita.org -and- your named.conf file would load the zone dnstest.faizalita.org in addition to faizalita.org. In your example, all you have done is created an address record within the faizalita.org domain. ie dnstest.faizalita.org, not something like www.dnstest.faizalita.org Which, for the purpose of your test is fine.
 
Old 11-13-2006, 11:45 PM   #5
jaz_comp
LQ Newbie
 
Registered: Nov 2004
Posts: 18

Rep: Reputation: 0
Hi,

As per your zone file there is no a record for your domain faizalita.org. please add one aA record and then try. i hope it will solve your problem.

Regards

Jaz
 
Old 11-14-2006, 05:26 AM   #6
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Actually, the OP does have the A record for faizalita.org in the zone file. It's the one after the NS record.

Long pause...

After running named-checkzone against the zone file, the ORIGIN statement is incorrect (needs to be $ORIGIN).
 
Old 08-06-2007, 12:51 AM   #7
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

Hello friend, please try http://www.wiki.com for general clarification. http://www.tldp.org/HOWTO/HOWTO-INDEX/howtos.html for tutorials and assistance with Linux systems modifications and learning curve difficulties.
 
  


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
Subdomain->IP? johndmann Linux - Networking 5 04-03-2006 04:09 AM
subdomain in the dns server bind c0nsur Linux - Software 4 03-29-2005 04:11 PM
DNS & Subdomain Setup Murpe Linux - Networking 0 03-10-2004 11:00 AM
Subdomain help DoobyWho Linux - General 3 04-14-2003 06:51 PM
subdomain deepak Linux - Networking 2 03-01-2001 09:50 PM

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

All times are GMT -5. The time now is 03:02 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