LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2013, 10:07 AM   #1
rubanek
LQ Newbie
 
Registered: Apr 2008
Location: MD
Distribution: CentOS, Fedora
Posts: 23
Blog Entries: 1

Rep: Reputation: 1
DNS - resolv.conf with custom tld (top level domain) domain directive


I run my own bind 9 within my internal private IP space (private as in RFC 1918). In my case it's a virtual cloud based environment. I like creating my own private/custom top level domain (tld) because if my the fully qualified domain names of my systems were to get leaked out to the public somehow it wouldn't constitute a security concern since they would not be resolvable.

I would like to insert a "domain" directive within the /etc/resolv.conf file of all of the nodes on my network but it doesn't seem to be working and I can't really find any documentation that says it's possible.

i.e.

domain aws
nameserver 192.168.1.1
nameserver 192.168.1.2

The goal would be to be able to perform a:

dig +short puppet

and have that request be equivalent to:

dig +short puppet.aws

Keep in mind, my problem isn't configuring bind to use custom tld's. That works fine. I can perform a `dig +short puppet.aws` and bind will return an IP address.

My question is:

Can one use the domain directive with a custom top level domain within the resolver configuration file?
 
Old 06-04-2013, 12:11 PM   #2
rubanek
LQ Newbie
 
Registered: Apr 2008
Location: MD
Distribution: CentOS, Fedora
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: 1
While looking into this a little deeper I found that if I simply `ping puppet` ping actually attempts to ping the correct IP address for puppet.aws. I checked the /etc/hosts file to ensure there wasn't a record for puppet in there (there wasn't). So, I performed an `strace -f ping -c 1 puppet` to see what resource ping was using to acquire an IP address for "puppet". It's definitely polling the DNS server and it's adding the ".aws" portion itself without a "domain" or "search" directive in /etc/resolv.conf. Curious.
 
  


Reply

Tags
dns, resolvconf



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Reverse Proxy/no top level domain name! secondhandman Linux - Newbie 3 05-10-2012 03:48 AM
Using sed regex to remove the top level domain from a fully qualified domain name linux2man Programming 6 12-01-2011 03:38 PM
Running my own top level domain with BIND9 KneeLess Linux - Networking 4 03-26-2006 06:29 PM
Top Level Domain Names wwnexc Linux - Networking 3 03-12-2006 02:03 PM
DNS & Top Level Domain JJX Linux - Networking 2 03-28-2004 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration