Jump to content

Getting DNS from DHCP Settings


Br@d

Recommended Posts

I'm trying to test a few things with a self hosted C2 and a Tetra on the same LAN.

since it want setup to work both internal and external via a host name, I setup an a record on my internal DNS so that the external DNS name will resolve to the internal IP while on the same LAN.

This issue is getting the Tetra to look to my DNS server automatically.

I'm currently using eth0 (wired) for my network connection.

What I would like is for the Tetra to get its DNS information from the same DHCP server that is handing out it IP address.

I have tried removing the "Option DNS 8.8.8.8, 8.8.4.4" from /etc/config/network under bot WAN (eth0) and WWAN with no luck.

I know that I can edit the /etc/resolve.conf file (currently pointed to 127.0.01)  or add a static entry to /etc/hosts (which I have done to get things working internally for now), but I'm looking for a means to do this via the DHCP issues DNS servers so that it will revolved the host name both internally and externally based on the network that it is connected to.

Any suggestions?

 

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...