Find the answer to your Linux question:
Results 1 to 3 of 3
I have a question, that I hope is simple. Currently I have bind9 on my router and it's working fine. I was wondering how to make it that when I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    24

    Configuring Bind9


    I have a question, that I hope is simple.

    Currently I have bind9 on my router and it's working fine.

    I was wondering how to make it that when I type in a hostname into the browser/ping, that I don't need to put the FQDN.

    Lets say I have an A record (This could just as well be a CNAME etc) that points
    exampledomain > 192.168.1.5

    So for example:
    If I type in:
    exampledomain

    It will timeout, because the domain doesn't exist.

    But, if I type in
    exampledomain.mydomain.com

    It will go to the IP address.

    How can I set it up, that if it "assumes" I'm typing in the FQDN, before timing out etc?

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    Try editting your /etc/resolv.conf file:
    Code:
    search example.com
    nameserver blah
    so if you want to ping host 'whatever', your query will assume you want to ping 'whatever.example.com'

    Not really a DNS server setting though, its more of a client side setting.
    linux user # 503963

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Posts
    24
    Hey scathefire,

    Thanks for your reply! I did this and it wasn't working. Then I remembered I didn't set my domain correctly in my DHCP server, it now works!

Posting Permissions

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