QNAP as DNS server and Domain controller

Discussion on setting up QNAP NAS products.
Post Reply
oriba
New here
Posts: 2
Joined: Mon May 15, 2017 6:49 pm

QNAP as DNS server and Domain controller

Post by oriba »

Hello

I have QNAP TS-253A Firmware version 4.3.3.0154 Build 20170413

This QNAP is activated as Domain controller and DHCP server.

I would like to set QNAP as DNS server on PCs so I will be able to join thoes PCs to the domain.
The QNAP DNS serer does not resolve external domain so PCs can not access the internet /

Thanks
User avatar
schumaku
Guru
Posts: 43578
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: QNAP as DNS server and Domain controller

Post by schumaku »

Hi,

Welcome to the QNAP NAS Community Forum!

Configure the "dns forwarder" in the /etc/smb.conf ... unfortunately there is still no UI control, so we do it from the shell:

Check the current setting:

[~] # getcfg -f /etc/smb.conf global "dns forwarder"
192.168.1.1

Change it to the correct IPv4 DNS forwarder address, ie. your router with a DNS proxy, like:

[~] # setcfg -f /etc/smb.conf global "dns forwarder" 172.20.12.34

Restart SAMBA:

[~] # /etc/init.d/smb.sh restart

That's it!

Regards,
-Kurt
oriba
New here
Posts: 2
Joined: Mon May 15, 2017 6:49 pm

Re: QNAP as DNS server and Domain controller

Post by oriba »

Dear schumaku

Many thanks for your comment.

Can you also guide me how to set secondary DNS for DHCP server on QNAP?

Thanks
User avatar
schumaku
Guru
Posts: 43578
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: QNAP as DNS server and Domain controller

Post by schumaku »

Not sure this does help much. When I'm right, the (very basic, not configurable) DHCP server does issue the NAS configured DNS servers (from /etc/resolv.conf) as set with the network config.
dusko_m
New here
Posts: 2
Joined: Fri Dec 09, 2016 6:31 am

Re: QNAP as DNS server and Domain controller

Post by dusko_m »

I am setting qnap as additional DC on remote site. there is permanent VPN connection between sites and while this link is online name resolution works perfectly. if (for any reason) this link is interrupted, name resolution doesn't work. getcfg gives me info that primary forwarding address is IP address of Primary DC. obviously, when VPN link is down, this IP is unreachable. what should i do?

1. set one and only forwarder toward local router
2. set first forwarder toward PDC and second toward router
3. set router (DHCP Server) to issue secondary DNS record to each client on network

how to use setcfg to set multiple forwarding ip addresses?
emoret
New here
Posts: 8
Joined: Fri Apr 26, 2013 5:37 pm

Re: QNAP as DNS server and Domain controller

Post by emoret »

I have similar problem. Did you find a solution?
gavin711
First post
Posts: 1
Joined: Fri Jun 02, 2017 1:16 am

Re: QNAP as DNS server and Domain controller

Post by gavin711 »

Hi

I've tried the commands below, however, as soon as I run /etc/init.d/smb.sh restart it sets dns forwarder back to 127.0.1.1? Is anyone else having this issue? I've even used vi to edit the smb.conf file directly and still it gets changed back again.

Any help greatly appreciated as I need to be able to resolve external DNS via QNAP running as Domain Controller.

Many thanks

Gavin
schumaku wrote: Tue May 16, 2017 5:15 am Hi,

Welcome to the QNAP NAS Community Forum!

Configure the "dns forwarder" in the /etc/smb.conf ... unfortunately there is still no UI control, so we do it from the shell:

Check the current setting:

[~] # getcfg -f /etc/smb.conf global "dns forwarder"
192.168.1.1

Change it to the correct IPv4 DNS forwarder address, ie. your router with a DNS proxy, like:

[~] # setcfg -f /etc/smb.conf global "dns forwarder" 172.20.12.34

Restart SAMBA:

[~] # /etc/init.d/smb.sh restart

That's it!

Regards,
-Kurt
Post Reply

Return to “Turbo Station Installation & Setup”