SunQuest
           DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old August 1st, 2003, 12:16 AM
goodgirl goodgirl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Wheatfield
Posts: 7 goodgirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to goodgirl
DNS/Bind/Virtual Server help

I have never done this before, and of course my site isn't resolving. I did NS Lookup and the nameservers show up right.

Here is what I setup, please let me know if I did something wrong or missed doing something.

httpd.conf

<VirtualHost 63.246.131.163>
ServerAdmin webmaster@gotwebhost.net
DocumentRoot /home/virtual/www.gotwebhost.net/html
ScriptAlias /cgi-bin/ /home/virtual/www.gotwebhost.net/cgi-bin/
ServerName *.gotwebhost.net
ErrorLog /home/virtual/www.gotwebhost.net/logs/www.gotwebhost.net.error.log
TransferLog /home/virtual/www.gotwebhost.net/logs/www.gotwebhost.net.access.log
</VirtualHost>

*************
rc.conf has

defaultrouter="63.246.131.1"
hostname="server1.pimpspromo.com"
ifconfig_rl0="inet 63.246.131.160 netmask 255.255.255.0"
ifconfig_rl0_alias0="inet 63.246.131.161 netmask 0xffffffff"
ifconfig_rl0_alias1="inet 63.246.131.162 netmask 0xffffffff"
ifconfig_rl0_alias2="inet 63.246.131.163 netmask 0xffffffff"
ifconfig_rl0_alias3="inet 63.246.131.164 netmask 0xffffffff"
ifconfig_rl0_alias4="inet 63.246.131.165 netmask 0xffffffff"
ifconfig_rl0_alias5="inet 63.246.131.166 netmask 0xffffffff"
ifconfig_rl0_alias6="inet 63.246.131.167 netmask 0xffffffff"
ifconfig_rl0_alias7="inet 63.246.131.168 netmask 0xffffffff"
ifconfig_rl0_alias8="inet 63.246.131.169 netmask 0xffffffff"
kern_securelevel_enable="NO"
linux_enable="YES"
nfs_reserved_port_only="YES"
sendmail_enable="YES"
sshd_enable="YES"

**************
named.conf has

zone "gotwebhost.net" {
type master;
file "db.gotwebhost.net";


*************************
db.gotwebhost.net

@ IN SOA ns1.gotwebhost.net. tanya.gotwebhost.net. (
1 ; Serial
10800 ; Refresh after 3 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; Minimum TTL of one day

IN NS ns1.gotwebhost.net.
localhost IN A 127.0.01
ns1 IN A 63.246.131.160
ns2 IN A 63.246.131.161
server1 IN A 63.246.131.163



mail IN CNAME server1
www IN CNAME server1
ftp IN CNAME server1
ssh IN CNAME server1


gotwebhost.net. MX 10 server1


How did I mess up?

gg

Reply With Quote
  #2  
Old August 1st, 2003, 08:24 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
This is one funky error. Your server says it is not authoritative (not the source) for gotwebhost.net although it does return the NS servers for that zone. It does not think server1 or localhost exists though.

Could you please place a copy of named.conf and db.gotwebhost.net in a WWW directory and post the links to them? I'd like to look at them in the exact format and settings you have them typed out.

Also restart named. Maybe you forgot to restart since your latest changes.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old August 1st, 2003, 02:22 PM
goodgirl goodgirl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Wheatfield
Posts: 7 goodgirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to goodgirl
Thank you SilentRage. I did restart named last night after I made a few changes.

Here are the files: http://www.softwaresells.com/gotwebhost/

Reply With Quote
  #4  
Old August 1st, 2003, 03:14 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
All of your db files need to be located in the following directory:

/etc/namedb/

The only thing I can think of is that the server is unable to find the zone files cause now NONE of your zones are authoritative. I send a request and your server's like "um nope, why don't ya check with the root servers for that" for every single zone. They dont' even return the name servers associated with them like I saw before.

Try starting named directly and read any error output it has. If there are none, add a loggin directive to your named.conf. Bv9ARM.ch06.html is the file with the windows release that has the log grammer. Add a logging directive for info or warning or something. See if you can find anything enlightening in the log file.

logging {
&nbsp;&nbsp;[ channel channel_name {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;( file path name [ versions ( number | unlimited ) ] [ size size spec ]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| syslog syslog_facility
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| stderr
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| null );
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[ severity (critical | error | warning | notice | info | debug [ level ] | dynamic ); ]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[ print-category yes or no; ]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[ print-severity yes or no; ]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[ print-time yes or no; ]
&nbsp;&nbsp;&nbsp;}; ]
&nbsp;&nbsp;&nbsp;[ category category_name {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel_name ; [ channel_name ; ... ]
&nbsp;&nbsp;&nbsp;}; ]
&nbsp;&nbsp;&nbsp;...
};

if you want an example log directive that would log what you want to log, just ask.

Last edited by SilentRage : August 1st, 2003 at 03:18 PM.

Reply With Quote
  #5  
Old August 1st, 2003, 03:26 PM
goodgirl goodgirl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Wheatfield
Posts: 7 goodgirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to goodgirl
Ok, all of my db files are and have been in that directory.

And you lost me on the logging.

Reply With Quote
  #6  
Old August 1st, 2003, 03:33 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
http://serialcoders.sytes.net/BIND/named.conf

notice that I have a logging directive. You may want to make something a little more verbose though.

I also just noticed that your db file does not have a $ORIGIN.

http://serialcoders.sytes.net/BIND/example.com.zone

I have a origin specified. All domains that don't end with a period has the origin appended to it. This may explain why I got such a wierd response before. You have 2 explicitly named records (the NS records) that have periods on the end. The other records have no period and therefor need the origin appended, but I'm not sure if there even is a origin (it might default to the zone name, not sure).

Reply With Quote
  #7  
Old August 1st, 2003, 04:00 PM
goodgirl goodgirl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Wheatfield
Posts: 7 goodgirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to goodgirl
Ok, I added the ORGIN to the file.

I added this to named.conf, not sure if I did it right. logging {
channel query_logging {
file "dns.log"
versions 3 size 100M;
print-time yes; // timestamp log entries
};
category queries {
query_logging;
};
category lame-servers { null; };
};

Reply With Quote
  #8  
Old August 1st, 2003, 05:24 PM
goodgirl goodgirl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Wheatfield
Posts: 7 goodgirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to goodgirl
I added the dns.log file here: http://www.softwaresells.com/gotwebhost/

Reply With Quote
  #9  
Old August 1st, 2003, 08:33 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
Every time you make a change to your zone file, please update the one you are linking me so that I can see what else may be wrong with it. I'm fairly certain it is the zone file itself who is at fault.

Reply With Quote
  #10  
Old August 1st, 2003, 08:56 PM
goodgirl goodgirl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Wheatfield
Posts: 7 goodgirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to goodgirl

Reply With Quote
  #11  
Old August 1st, 2003, 09:14 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
you misspelled origin and didn't fix domain references. I took the liberty to completely rewrite it. I fixed several other issues as well.

http://serialcoders.sytes.net/BIND/gotwebhost.com.zone

You can keep your 'db.gotwebhost.com' filename if you want. I use .zone at the end cause in windows .com is dos executeables.

Reply With Quote
  #12  
Old August 1st, 2003, 09:29 PM
goodgirl goodgirl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Wheatfield
Posts: 7 goodgirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to goodgirl
Thank you It works

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > DNS/Bind/Virtual Server help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |