Can i set up a dns server if i don't have registered domain?
Can i set up a dns server if i don't have registered domain?
|
Every dns server I have ever used has only a numerical IP (no domain name). Has your experience been different?
|
Quote:
If you notice the zone file: Code:
$TTL 3600 Code:
noc-t2k-01.example.com IN A 10.76.15.72 So what is this "noc-t2k-01.example.com"? Isn't a registered domain name? If we do: Code:
dig www.google.com Code:
; <<>> DiG 9.7.0-P1 <<>> www.google.com Code:
www.l.google.com. 110 IN A 209.85.229.99 |
I'm not familiar with everything you just posted, but none of it seems to answer your original question.
If I tell my system to go to--eg--192.168.1.1 to do DNS lookup, why would I need to have a domain name assigned to that IP? |
I think you are both on different wavelengths here.
Cola - your question is rather vague - can you be more specific? What are you trying to achieve? You don't have to own a .com address to run a DNS server, if that is what you mean. You could for example have an internal domain "myhouse.local" - you don't have to have this registered anywhere. then you could have 3 PC's...pc1.myhouse.local, and so on. For each PC you would have an A record within the BIND Zone File for myhouse.local, eg: pc1.myhouse.local. IN A 192.168.1.1 pc2.myhouse.local. IN A 192.168.1.2 and so on.. If PC1 tries to ping hostname PC3, the myhouse.local nameserver resolves the name with an authoritative response. If the PC's in the internal domain used this DNS server and requested an address for which the DNS server has no entry it will be forwarded to an external DNS server. This can be done with forwarders or by using the root.hints file. In the example zone file you posted "noc-t2k-01.example.com" is a host (note that it is an A record). Often these are used for websites, for example. If I am stating the obvious, I apologise. |
Quote:
How would this domain be "myhouse.local" made? I want to set up a dns server on my pc. |
Do you want to do DNS for an internal domain (which as covered doesn't need to be a publicly registered domain)? Basically the simplest thing to do if you only have a single PC is setup BIND and only a root hints zone file.
If you do want to resolve internal hosts just pick some random domain for the computers internally to use, and setup the forward lookup zone file. Might as well do the reverse too if you go through the trouble of setting up an internal server (not really that big of a deal IMHO). |
While it would be perfectly acceptable to set up a local domain, with only one PC I don't see a good reason to. If you want to name it, it would be easier to put an entry in your hosts file. One thing to consider is that you can run a DNS server and use that instead of your ISP for doing lookups. It has been my experience that the DNS service seems to be the most common item to go down on ISPs. There are quite a few good tutorials out there on this subject. Bind9 is pretty easy to setup. Take a look at these:
http://www.zaphu.com/2007/09/10/ubun...-server-setup/ and http://lani78.wordpress.com/2008/08/...local-network/ |
All times are GMT -5. The time now is 05:05 PM. |