I have Ubuntu 16.04 and 2 Network Interfaces. Workers can't access this server from internet only accessible LAN. My second network card configure with static ip address. Subdomain redirect to this static ip address. I added an A record for this static IP at my hosting server. DNS server also installed at this server
#network configuration is
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eno1
iface eno1 inet static
address 192.168.x.x
netmask 255.255.255.0
network 192.168.x.0
broadcast 192.168.x.255
gateway 192.168.x.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.x.1 192.168.x.5
dns-search domain.org.pk
## Interface configuration for Nexlinx connection
auto eno2
**iface eno2 inet static**
address 116.x.x.x
netmask 255.255.255.x
broadcast 116.x.x.x
gateway 116.x.x.153
dns-nameservers 116.x.x.x 202.x.x.x
What setting required to accessible server publicly? When I installed Ubuntu 16 server I set primary address 192.168.x.x. Can I change static ip address secondary to primary? how?
route -n