I have a mobo with 2 ports: eth0(WAN) and eth1(LAN) which i want to use as a router/gateway(NAT). But at first I want it to manage DHCP.
I've installed Debian, configured eth0
for dynamic and eth1
for static ip 10.0.0.1
, then got dhcpd, and now want to write /etc/dhcpd.conf
. But I am stuck on option domain-name-servers ...
. What should i put there!?
The trick is that I usually simply put 8.8.8.8
in there. But my ISP uses some "IPoE" scheme, in which I MUST use their DNS, to resolve any name to a specific IP. Upon accessing that IP on port 80 (HTTP) i got authorisation web page, enter a credentials, and only after 10 minuter internet addresses like 8.8.8.8 became availble.
So what to do? Do I need somehow to "forward" domain-name-servers, provided for eth0 via dhcp client, into /etc/dhcpd.conf
every time my ISP want me to reauth/changes my IP?
PS. reword - eth0
got some DNS server via dynamic config. I need to resolve any dns name (to get auth server IP instead of real site IP). And access it through HTTP(usually done via client browser, on machine located in LAN). So I need LAN port eth1
also up and DHCP forwarding same DNS to the client, as WAN port eth0
got. How?)