|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
Thank you SilentRage. I did restart named last night after I made a few changes.
Here are the files: http://www.softwaresells.com/gotwebhost/ |
|
#4
|
||||
|
||||
|
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 { [ channel channel_name { ( file path name [ versions ( number | unlimited ) ] [ size size spec ] | syslog syslog_facility | stderr | null ); [ severity (critical | error | warning | notice | info | debug [ level ] | dynamic ); ] [ print-category yes or no; ] [ print-severity yes or no; ] [ print-time yes or no; ] }; ] [ category category_name { channel_name ; [ channel_name ; ... ] }; ] ... }; 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. |
|
#5
|
|||
|
|||
|
Ok, all of my db files are and have been in that directory.
And you lost me on the logging. |
|
#6
|
||||
|
||||
|
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). |
|
#7
|
|||
|
|||
|
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; }; }; |
|
#8
|
|||
|
|||
|
I added the dns.log file here: http://www.softwaresells.com/gotwebhost/
|
|
#9
|
||||
|
||||
|
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.
|
|
#10
|
|||
|
|||
|
Ok, here is the last one I tried http://www.softwaresells.com/gotwebhost/gotwebhost.net
|
|
#11
|
||||
|
||||
|
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. |
|
#12
|
|||
|
|||
|
Thank you
It works ![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > DNS/Bind/Virtual Server help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|