News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

LMCE as DNS Server?

Started by Matthew, January 14, 2008, 05:29:42 PM

Previous topic - Next topic

Matthew

How do I use LMCE as the nameserver for my LAN? Independent of using DynDNS so Internet hosts could find my LAN hosts by FQDNs published on the Internet, how can I just replace the /etc/hosts file on each of my LAN hosts with DNS management that's published only on my LAN?

colinjones

Wouldn't you just have to setup a DNS server on your core, and then edit the DHCP config file to point your MDs/devices at it rather than the Internet DNS system (or broadband router, which often forward these requests?) Don't know how you do that on Linux in terms of the detail, but functionally it is very simple. Isn't there a dhpcd.config file? That would be where you point the clients at your core. And DNS server is a standard function of all Unix-like OSs as far as I am aware... guessing dnsd? nsd? ypd? bind?

jgaffney

I'd suspect you could just install "bind" like on any other linux system.

I don't know enough about the MCE stuff to know if it will cause any problems but I would suspect it wouldn't.

I think this link will get it going for you
http://www.linode.com/wiki/index.php/Install_BIND9_in_Ubuntu_(Breezy)

Matthew

LMCE already has named (but not bind) installed, which is a BIND 9 DNS server. I don't know what role it plays in LMCE, but probably there's a way to use either that facility already running (and perhaps configurable with an existing LMCE GUI), or to just add some configs for LAN administration. And probably add a GUI, which should also expose configuring DynDNS.

Anyone already know how this named subsystem works in LMCE?

hari

Quote from: Matthew on January 15, 2008, 12:15:05 AM
LMCE already has named (but not bind) installed, which is a BIND 9 DNS server.
read that sentence again ;)

Quote
I don't know what role it plays in LMCE, but probably there's a way to use either that facility already running (and perhaps configurable with an existing LMCE GUI), or to just add some configs for LAN administration. And probably add a GUI, which should also expose configuring DynDNS.
there is no gui in lmce for that. Add your zone files to /etc/bind/named.conf.local

best regards,
Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Matthew

Quote from: hari on January 15, 2008, 12:19:43 AM
Quote from: Matthew on January 15, 2008, 12:15:05 AM
LMCE already has named (but not bind) installed, which is a BIND 9 DNS server.
read that sentence again ;)

I read it twice when I posted it, to try to make sure I was clear that though others had just suggested installing bind, named was already installed, and named is a BIND server.


Quote from: hari on January 15, 2008, 12:19:43 AM
Quote from: Matthew on January 15, 2008, 12:15:05 AM
I don't know what role it plays in LMCE, but probably there's a way to use either that facility already running (and perhaps configurable with an existing LMCE GUI), or to just add some configs for LAN administration. And probably add a GUI, which should also expose configuring DynDNS.
there is no gui in lmce for that. Add your zone files to /etc/bind/named.conf.local

What does LMCE use named for by default? And is there any reason I shouldn't add at least a "zone file import" field to the LMCE Network settings form, if I get a chance?

hari

Quote from: Matthew on January 15, 2008, 12:37:25 AM
Quote from: hari on January 15, 2008, 12:19:43 AM
Quote from: Matthew on January 15, 2008, 12:15:05 AM
LMCE already has named (but not bind) installed, which is a BIND 9 DNS server.
read that sentence again ;)

I read it twice when I posted it, to try to make sure I was clear that though others had just suggested installing bind, named was already installed, and named is a BIND server.
the named bind daemon is included in the package bind(9) (and thats installed per default)

Quote
Quote from: hari on January 15, 2008, 12:19:43 AM
there is no gui in lmce for that. Add your zone files to /etc/bind/named.conf.local

What does LMCE use named for by default?
as the named name suggests its used as a name server. What else?
your provider's name servers are written into the file /etc/bind/named.conf.forwarders (that gets included by named.conf.options) by the script "Network_DNS.sh". That greps the servers from "/etc/resolv.conf" at line 19.
Quote
And is there any reason I shouldn't add at least a "zone file import" field to the LMCE Network settings form, if I get a chance?
take your chance.
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation


royw

Howdy,

I added the http://wiki.linuxmce.org/index.php/How_to_setup_Local_Authoritative_DNS page to the wiki.  It should be close to what you want.  The changes have so far survived reboots so I don't think any of the LMCE scripts are affecting the changed files.


Have fun,
Roy
My System: [url="http://wiki.linuxmce.org/index.php/User:Royw"]http://wiki.linuxmce.org/index.php/User:Royw[/url]

fibres

Just noticed this post.

From what I know linuxmce uses named to proide dns resolutions for local machines. If you look at the network config on machines on the linuxmce network they have the core listed as their name server. Which means that these machine use the core for dns lookups.
From what I gather it uses dns forwarding and forwards all dns queries onto the dns servers on your isp to avoid excess network traffic.
This is known as a non recursive name server.
Basically the named on the core justs acts as a dns forwarder and passes the lookup to the isps name server istead of doing a full dns lookup itself.
So basically it will see if it has a zone file with info on the domain itself. ie if the domain is hosed on the local name server and if not it will pass it on/


Regards

tux-box1

I know this is old, but I wanted to post my experience with this.
First I would like to make mention that their are some typing errors in the wiki.
For example at the part where you sate
QuoteYou will be creating or editing the following config files in these new directories:
/etc/bind.new/named.conf
/etc/bind.new/named.conf.options
/etc/bind.new/logging.conf
/etc/bind.new/rndc.conf
/etc/bind.new/rndc.key
/etc/bind.new/db.wright.local.zone
/etc/bind.new/db.wright.local.rev
/etc/dhcp3.new/dhcpd.conf
/etc/resolv.conf.new


you are missing the e at the end of /etc/resolv.conf.new
and again here
File permissions:
//    /etc/bind/named.conf   root:root   644
//    /etc/bind/rndc.key     root:bind   640
//    /etc/bind/rndc.conf    root:root   600
//    /etc/resolv.conf       root:root   644
//    /etc/bind              root:bind   775, chmod g+s => drwxrwsr-x
//    /etc/dhcp3             root:root   755
//    /etc/dhcp3/dhcpd.conf  root:root   644
//

but you do put it here sudo mv /etc/bind /etc/bind.original
sudo mv /etc/bind.new /etc/bind
sudo mv /etc/dhcp3 /etc/dhcp3.original
sudo mv /etc/dhcp3.new /etc/dhcp3
sudo mv /etc/resolve.conf /etc/resolve.conf.original
sudo mv /etc/resolve.conf.new /etc/resolve.conf


I was having some issues at first until I realized what was happening.

In the end I finally received the following error. I was hoping some one could help me with it.
dcerouter_1030439:~# sudo rndc reload
WARNING: key file (/etc/bind/rndc.key) exists, but using default configuration file (/etc/bind/rndc.conf)
rndc: connection to remote host closed
This may indicate that
* the remote server is using an older version of the command protocol,
* this host is not authorized to connect,
* the clocks are not synchronized, or
* the key is invalid.


System = 10.04 core only install. Using the "LMCE-1004-20120730212926289.iso"
Thanks.

Marie.O

Quote from: tux-box1 on August 11, 2012, 08:21:10 PM
First I would like to make mention that their are some typing errors in the wiki.

So? FIX THEM!
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

tux-box1

#12
Uh, I was not aware that I had permission to do that!

QuoteThis action has been automatically identified as harmful, and therefore disallowed. If you believe your edit was constructive, please contact an administrator, and inform them of what you were trying to do. A brief description of the abuse rule which your action matched is: Link spamming 2

_if_

Quote from: tux-box1 on August 11, 2012, 09:16:24 PM
Uh, I was not aware that I had permission to do that!


your forum username and password should now work for the wiki as well...

l3mce

Quote from: tux-box1 on August 11, 2012, 08:21:10 PM
I know this is old, but I wanted to post my experience with this.
First I would like to make mention that their are some typing errors in the wiki.
For example at the part where you sate /etc/bind.new/named.conf
/etc/bind.new/named.conf.options
/etc/bind.new/logging.conf
/etc/bind.new/rndc.conf
/etc/bind.new/rndc.key
/etc/bind.new/db.wright.local.zone
/etc/bind.new/db.wright.local.rev
/etc/dhcp3.new/dhcpd.conf
/etc/resolv.conf.new


you are missing the e at the end of /etc/resolv.conf.new
and again here
File permissions:
//    /etc/bind/named.conf   root:root   644
//    /etc/bind/rndc.key     root:bind   640
//    /etc/bind/rndc.conf    root:root   600
//    /etc/resolv.conf       root:root   644
//    /etc/bind              root:bind   775, chmod g+s => drwxrwsr-x
//    /etc/dhcp3             root:root   755
//    /etc/dhcp3/dhcpd.conf  root:root   644
//

but you do put it here sudo mv /etc/bind /etc/bind.original
sudo mv /etc/bind.new /etc/bind
sudo mv /etc/dhcp3 /etc/dhcp3.original
sudo mv /etc/dhcp3.new /etc/dhcp3
sudo mv /etc/resolve.conf /etc/resolve.conf.original
sudo mv /etc/resolve.conf.new /etc/resolve.conf


I was having some issues at first until I realized what was happening.

In the end I finally received the following error. I was hoping some one could help me with it.
dcerouter_1030439:~# sudo rndc reload
WARNING: key file (/etc/bind/rndc.key) exists, but using default configuration file (/etc/bind/rndc.conf)
rndc: connection to remote host closed
This may indicate that
* the remote server is using an older version of the command protocol,
* this host is not authorized to connect,
* the clocks are not synchronized, or
* the key is invalid.


System = 10.04 core only install. Using the "LMCE-1004-20120730212926289.iso"
Thanks.

It is resolv.conf    not resolve.conf.

Probably why you had some issues.
I never quit... I just ping out.