TurnKey Linux Virtual Appliance Library

Does Turnkey Lamp Stack Run its own Dns so other computers on the net can resolve the ip?

Does Turnkey Lamp Stack Run its own Dns so other computers on the net can resolve the ip? Just like most webhosts running dns on the same server as where the websites are served.

Jeremy's picture

Don't know of any webhosts that do that...

Most (if not all) webhosts have their own DNS management (usually hosted on a number of servers) but they are 2 separate services (although often sold/supplied together).

So you will still need your domain seller to provide DNS to point to your server. If you don't have a domain then TKL Hub can provide DNS (and free domains).

this is a dedicate server

this is a dedicate server that I m running. I think i need to provide dns.


Eric (tssgery)'s picture

most systems don't run their own dns

Most systems do not run their own DNS server, but utilize their /etc/hosts file for name resolution and then rely upon external DNS servers for things not in /etc/hosts.

so, if there is a hostname you need to resolve on your lamp server and it's not in DNS, just add a line to /etc/hosts and you'll be good.

 

Note, this won't help other systems resolve the address. For that, yes... you should setup DNS resolution and then add the DNS server to all client machines. 


Eric This server is a host of

Eric

This server is a host of websites. It needs others to resolve its domains, not the other way around. Many servers run their own dns. I just want to know if and how it can be added to this stack.


Eric (tssgery)'s picture

You can certainly add a DNS server to the stack

There's nothing preventing you from adding a DNS server to the LAMP stack. I haven't used bind in a LONG time some wouldn't be the best person to answer. I'd suggest looking at tutorials for installing bind on a Debian system, as TKL is based on Debian. The steps should be identical.

After you add the DNS server to your lamp stack, it won't mean that clients will automatically be able to resolve the names unless you add the DNS server to the clients resolution order. I think, and could easily be wrong, that your DNS must be 'authoratative' for the domains it serves in order to propagate to other DNS servers.

Again, I'm not a bind or DNS person but would suggest looking for tutorials on Debian and Bind... that should point you in the right direction.


Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)