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 |
look for virtual hosting apache on google or
http://httpd.apache.org/docs-2.0/vhosts/ |
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 |
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? |
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 |
All times are GMT -5. The time now is 09:07 PM. |