DNS configuration AGH on server

Hello, I'm encountering the following problem,
AGH is in docker on Ubuntu server with macvlan ipadress.
AX-1800 has still AGH installed.
I configured a windows pc using the DNS IP-adress of the macvlan manually and it works.
Then I disabled the AGH in the router, set the dns server adress pointing to the macvlan in the router.
Set windows PC to obtain IP and DNS automatically.
Ipconfig /all shows the DNS of the router. 192.168.8.1 and not 192.168.8.200

So, manually it seems to work but not when setting the DNS using the gui.

Ofcourse I must make a mistake but I cannot find it.

Thank you,

Tom

Watching this as I have a similar issue.

Figured this out try luci-network-interfaces br-lan edit DHCPServer-Advanced Then at the bottom under DHCP-options add 6,x.x.x.x to send that as a DNS to the clients via DHCP.

Hi Tom,
You may try to specify the adguard's DNS upstream server as a DNS server that does not listen on port 53, such as a DOT server. Observe whether this works properly and meets your expectations?
This will help us locate the problem.

The IP address of Ubuntu is 192.168.8.200, right?

Hello, The ipaddress of the Ubuntu server is 192.168.8.250 and the dedicated ip address of the macvlan (AGH) is 192.168.8.200.
I prefer to have the DHCP server on the AX-1800 which points to the DNS (AGH) server in docker on the Ubuntu server.

I want the AGH separate from the AX-1800 because of memory issues and it's much easier to upgrade the FW of the AX-1800.

As I already mentioned, I tried to point the DNS server using the GUI in the AX-1800 but didn't work. I also tried to add 'list server 192.168.8.200' in the DHCP but also, no result.

I want to learn because I'm not a guru on the DNS 'thingy' .
(if you have a link where I can read about it, would be great)

PS: I will take a look at @woobs420 solution later on.

This does work well. Although be sure to reconnect the client devices and be sure the GL GUI DNS is set to auto so they get the updated DHCP info. While there might be another way I found this by hunting around for a few hours. Unlike you though when I used the GL GUI's manual DNS setting it worked but everything came through as the router's ip. This way keeps the clients separate.

You could turn off DHCP in router and turn on DHCP inside Adguard home Ubuntu server.
Might be working and save memories in router :thinking:

That would be easy if I could import my static leases.
But, I've tried to activate the DHCP server on the AGH interface and curious enough, AGH says my 192.168.8.200 is NOT a valid IP v4 address.

Hello @woobs420,

when I edit my LAN DHCP server and add my IP address , it works but after rebooting the router, the internet connection is lost again. YES, I did save and apply.
In the Interfaces-LAN- 'DHCP options' I have only 1 DNS server, and not as in your screenshot, the '3,192.168.1.1' or in my case it should be '3, 192.168.8.1'

You could try Ubuntu server is 192.168.8.2
Then DHCP in Adguard start from 192.168.8.3 until 192.168.8.255
Router is 192.168.8.1

I did my small server raspberry pi and made DHCP with Adguard home.

Is there a backup feature I am missing somewhere? I would like to do a full reset but hesitant to plug all of it back in again.

The 3, flag seems to be to indicate the gateway address it's not a DNS address. The line below that starts with the 6, flag is DNS. I have only one the 192.168.1.157 number. If you wanted 2 DNS servers it would look like 6,x.x.x.x,y.y.y.y hope that helps. Better explaination would be 3, is the gateway address and 6, is the DNS address.

1 Like