#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Wheatfield
    Posts
    7
    Rep Power
    0

    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. #2
  3. DNS/BIND Guru
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2003
    Location
    OH, USA
    Posts
    4,266
    Rep Power
    173
    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
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Wheatfield
    Posts
    7
    Rep Power
    0
    Thank you SilentRage. I did restart named last night after I made a few changes.

    Here are the files: http://www.softwaresells.com/gotwebhost/
  6. #4
  7. DNS/BIND Guru
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2003
    Location
    OH, USA
    Posts
    4,266
    Rep Power
    173
    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 04:18 PM.
    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
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Wheatfield
    Posts
    7
    Rep Power
    0
    Ok, all of my db files are and have been in that directory.

    And you lost me on the logging.
  10. #6
  11. DNS/BIND Guru
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2003
    Location
    OH, USA
    Posts
    4,266
    Rep Power
    173
    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).
    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
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Wheatfield
    Posts
    7
    Rep Power
    0
    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; };
    };
  14. #8
  15. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Wheatfield
    Posts
    7
    Rep Power
    0
    I added the dns.log file here: http://www.softwaresells.com/gotwebhost/
  16. #9
  17. DNS/BIND Guru
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2003
    Location
    OH, USA
    Posts
    4,266
    Rep Power
    173
    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.
    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
  18. #10
  19. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Wheatfield
    Posts
    7
    Rep Power
    0
  20. #11
  21. DNS/BIND Guru
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2003
    Location
    OH, USA
    Posts
    4,266
    Rep Power
    173
    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.
    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
  22. #12
  23. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Wheatfield
    Posts
    7
    Rep Power
    0
    Thank you It works

IMN logo majestic logo threadwatch logo seochat tools logo