LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-05-2003, 12:38 PM   #1
AZIMBD03
Member
 
Registered: Oct 2003
Location: Dhaka,Bangladeh
Distribution: Red Hat
Posts: 80

Rep: Reputation: 15
Question Subdomain and hosting problem


Hi
I m not so expert on linux rh..I do have DNS server on 202.141.191.x IP and .secondery DNS on 202.141.191.y IP...202.141.191.y is my web server also...Now i would like create a subdomain.mydomain.net and i want to host this subdomain on my web server...how I will finish my job??/

Pls any body help me with details....



Thanks

ZIM
 
Old 12-05-2003, 01:16 PM   #2
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
look for virtual hosting apache on google or
http://httpd.apache.org/docs-2.0/vhosts/
 
Old 12-06-2003, 05:42 AM   #3
AZIMBD03
Member
 
Registered: Oct 2003
Location: Dhaka,Bangladeh
Distribution: Red Hat
Posts: 80

Original Poster
Rep: Reputation: 15
Error in nslookup

Thanks to have ur help...

I have made subdomain on my Master DNS(202.141.191.x) and create virtual host on my web server(202.141.191.y)...But when I have use that command:
nslookup subdomain.mydomain.net
but got that massage:
*** ns1.mydomain.com can't find subdomain.mydomain.net: Server failed


Plz help me what can i do now or whats wrong here?


Thanks


ZIM
 
Old 12-06-2003, 09:44 AM   #4
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
This can be because of many reasons. And this could be very long to troubleshoot. First, I invite you to review your DNS configuration.

Server failed usually means that ns1.mydomain.com is down, or not responding, or bind not listening to the right IP addr.

can you ping it?

netstat -lp (on the dns server)

do you see something listening on port 53 udp?
 
Old 12-07-2003, 04:09 AM   #5
AZIMBD03
Member
 
Registered: Oct 2003
Location: Dhaka,Bangladeh
Distribution: Red Hat
Posts: 80

Original Poster
Rep: Reputation: 15
I have configured my domain and subdomain on my primary DNS(202.141.191.x)
I have configured following files in var/named
db.202.141.191.x
db.mydomain.net
db.mydomain.net
db.subdomain.mydomain.net
and the write script on /etc/named.conf as follows
Zone “ mydomain.net” IN {
type master ;
file “db.mydomain.net”;
allow-update { 202.141.191.y}; ##202.141.191.y is my secondary DNS
and web server also
};
Zone “191.141.202. in-addr.arpa” IN {
type master
File “db.202.141.191.2”
Allow-update { 202.141.191.y};
};
Zone “subdomain.mydomain.net” IN {
type master ;
file “db.subdomain.mydomain.net”;
allow-update { 202.141.191.y};
after finishing this job I have hosted(create virtual Host) my domain and sub domain on web apache.
I got following massage when I run nslookup mydomain.net
Server ns1.mydomain.net
Address:202.141.191.x
And my web domain and web server working fine

But when I run nslookup subdomain.mydomain.net
And I see the following massage: Server ns1.mydomain.net
Address:202.141.191.x ##primary DNS
***ns1.mydomain.net can’t find subdomian.mydomain.net :server failed
according to you I run netstat –lp
Portto Recv-Q Send-Q Local address Foreign Address State PID/Program name
Tcp 0 0 *:32768 *:* LISTEN
….. …. ….. …. …. …….
25279/named
tcp 0 0 localhost.locald:domain * :* LISTEN
25279/named
tcp 0 0 *:ftp *:* LISTEN
25279/named
udp 0 0 *:932 *:*
25279/named
udp 0 0 localhost.locald:domain *:*
25279/named
udp 0 0 *:sunrpc *:*

***I don’t see anything(such as LISTEN) in state for udp

I run nmap and get following massage:
(…..ports scanned but not shown below are in state: closed)
port state service
21/tcp open ftp
….
53/tcp state domain


would you plz....what can i do here?

If you want to see details what i have configured on
db.202.141.191.x
db.mydomain.net
db.mydomain.net
db.subdomain.mydomain.net

I can forward to you details



Thanks


AZIM
 
  


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
Secure Subdomain / Directory Problem chadi Linux - General 1 12-23-2004 12:37 PM
Yet another apache domain/subdomain problem xtra Linux - Newbie 2 08-18-2004 07:30 AM
Unix hosting Vs windows hosting the_imax Linux - Networking 2 07-24-2004 01:47 PM
SubDomain Problem - Directories? Quincy Wisdom General 0 07-04-2004 10:46 PM
VSFTP hosting problem tpark Linux - Networking 0 03-03-2004 09:55 PM


All times are GMT -5. The time now is 03:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration