Find the answer to your Linux question:
Results 1 to 2 of 2
Hi everyone, I am setting up a virtual network using three dell pcs running freebsd. My goal in the setup is to map a few REAL domain names to a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Posts
    7

    Bind 9.3.0 Issues - Newbie :)


    Hi everyone,

    I am setting up a virtual network using three dell pcs running freebsd. My
    goal in the setup is to map a few REAL domain names to a local ip address so
    that I can direct traffic to a single web-server. This is being done for a
    reserach project looking at the effects of real traffic patterns on web ser
    vers. For example, my local network will see traffic directed to www.cnn.co
    m and map it to a fixed ip on my network.

    Unfortunately, the tests I am running on the setup are not working.

    The relavent portion of named.conf looks like this:

    zone "." {
    type hint;
    file "named.root";
    };

    zone "testhost.com" {
    type master;
    file "master/testhost.com.hosts";
    };

    and testhost.com.hosts looks like this:

    $TTL 86400
    testhost.com. IN SOA localhost. jsm078.localhost.(
    1
    3600
    432000
    86400)

    www.testhost.com IN A 10.132.12.138
    localhost. IN A 127.0.0.1

    BUT when I try to named, I get the following error:

    dns_rdata_fromtext: master/testhost.com.hosts:6: near eol: unexpected end of
    input

    zone testhost.com/IN: loading master file master/testhost.com.hosts: unexpec
    ted end of input


    Any ideas what might be going on? Thanks for any input!

  2. #2
    Linux Newbie
    Join Date
    Mar 2005
    Posts
    230
    All zone files must have at least one NS record.

    The error message says you've got a problem with line 6. But I don't know what line 6 is. Please paste the exact contents of your zone file into your next reply and put CODE BB tags around the text to keep it readable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •