خرید بک لینک

Hello. I'm having some issues with my DNS setup, here's my story:

Servers used

  • systemd-networkd
  • systemd-resolved
  • dnsmasq
  • isc-dhcp-server

Configuration files

  • /etc/systemd/network/10-static-eth0.network

Code:

[Match]
Name=eth0

[Address]
Address=192.168.0.2/24

[Route]
Gateway=192.168.0.1

[Network]
DNS=8.8.8.8
DNS=8.8.4.4
DHCP=no
IPv6AcceptRouterAdvertisements=false
  • /etc/systemd/network/11-static-eth1.network

Code:

[Match]
Name=eth1

[Address]
Address=10.0.0.1/24

[Network]
DHCP=ipv4
IPv6AcceptRouterAdvertisements=false
  • /etc/dnsmasq.conf

Code:

address=/mydomain.tld/10.0.0.1
domain-needed
bogus-priv
  • /etc/dhcp/dhcpd.conf

Code:

option routers 10.0.0.1;
option subnet-mask 255.0.0.0;
option domain-name-servers 10.0.0.1;
option domain-name "mydomain.tld";

ddns-update-style interim;
ddns-updates on;
ignore client-updates;
update-static-leases on;
Issues
  1. I'm not able to resolve *.mydomain.tld locally, they all resolve with a public IP (instead of 10.0.0.1).
  2. From my LAN devices (eth1 interface), I'm able to resolve *.mydomain.tld locally (they all are 10.0.0.1) but I'm not able to access inteet cause I've got mydomain.tld appended to all my DNS queries, like google.com.mydomain.tld.

Thanks a lot for your help!

برچسب: نویسنده: استخدام کار تاريخ: جمعه 17 ارديبهشت 1395 ساعت: 2:35

صفحه بندی