Results 1 to 2 of 2

Thread: Is it possible to make dnsmasq to automatically use DNS servers provided by DHCP as u

  1. #1
    Join Date
    May 2024
    Beans
    1

    Is it possible to make dnsmasq to automatically use DNS servers provided by DHCP as u

    I have dnsmasq configured to use upstream dns servers manually set with the option "server=" in "/etc/dnsmasq.conf". These upstream servers are used to resolved public ip addresses and domains.
    This machine gets its DNS servers list by DHCP and looks like this in resolv.conf file.
    Code:
    nameserver 127.0.0.1
    nameserver <upstream1>
    nameserver <upstream2>
    search <domain-name>
    Here is also the content of the file "/etc/resolvconf/interface-order"
    Code:
    lo*
    ens34*
    ens33*

    The DHCP is controlled by a different team and they may change the DNS servers at any time, I wanted to know if there is a way to tell dnsmasq to use the two upstream servers set by the DHCP server in resolv.conf instead of manually specifying the upsteam servers in dnsmasq.conf everytime the DNS servers IPs are changed by the networking team?
    Last edited by mahany; May 23rd, 2024 at 08:29 AM.

  2. #2
    currentshaft is offline Oops! My Coffee Cup is empty.
    Join Date
    May 2024
    Beans
    Hidden!

    Re: Is it possible to make dnsmasq to automatically use DNS servers provided by DHCP

    a b
    Last edited by currentshaft; 2 Weeks Ago at 04:32 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •