FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
142 views 0 comments
by anonymous

Hello,

We have a RUT955 containing a program on the µSD card. This router is connected in DHCP to my network. But the DNS setting is not taken into account. Connected by ssh on the router I cannot resolve the name of my servers. So my program crashes.
The file resolv.conf keeps the local configuration.

File /etc/resolv.conf :
search lan
nameserver 127.0.0.1
nameserver ::
1

File /tmp/resolv.conf.d/resolv.conf.auto
# Interface NETGEAR_ATELIER
nameserver 192.168.1.4
search blabla.net

Firmware : RUT9_R_00.07.03.2

Regards,
Stephane

1 Answer

0 votes
by anonymous

Hi,

Could you simply try to edit hosts from SSH:

  • vi /etc/hosts

Press 'i' to start editing text file.

Navigate with arrows on your keyboard.

Add IP address and hostname.

Press 'esc' and type ':wq' to write and quit (save the file).

You should be able to resolve the hostname to the IP address as in the file.

Kind Regards,

Andzej