DNS configuration on MLinux

Home Forums Conduit: mLinux Model DNS configuration on MLinux

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #12632
    Thierry Schneider
    Participant

    Hi,
    I would like to forward LoRa messages to iot.semtech.com but it seem the DNS function is not working in the Multitech Conduit.

    How can I enable it ?

    Thanks
    Thierry

    #12637
    Jeff Hatch
    Keymaster

    Thierry,

    If you have a cellular radio and a SIM card installed, once cellular is enabled and ppp is up and running you should have DNS working. If you don’t have a cellular radio and/or SIM card, in the UI you can go to Setup->Network Interfaces, select the eth0 interface and set DNS and gateway settings.

    Jeff

    #12638
    Jeff Hatch
    Keymaster

    Thierry,

    Sorry, I thought you were running an AEP model Conduit. To set up the DNS on the mLinux model, if you have a cellular radio and SIM card, you can set up ppp with the instructions at:

    http://www.multitech.net/developer/software/mlinux/using-mlinux/start-cell-connection-on-boot/

    If you don’t have a cellular radio and/or SIM card, you can update the /etc/network/interfaces file to configure the eth0 with an entry like:

    # Wired interface
    auto eth0
    iface eth0 inet static
    address 192.168.2.100
    gateway 192.168.2.1
    netmask 255.255.255.0

    Jeff

    #12641
    Thierry Schneider
    Participant

    Hi Jeff,

    Thank you for the answer. Unfortunately this specifies the IP address and routing but it doesn’s active DNS

    Best regards
    Thierry

    #12642
    Jeff Hatch
    Keymaster

    Thierry,

    For DNS you should be able to add the dns nameservers:

    # Wired interface
    auto eth0
    iface eth0 inet static
    address 192.168.2.100
    gateway 192.168.2.1
    dns-nameservers 12.34.56.78 12.34.56.79
    netmask 255.255.255.0

    Jeff

    #12963
    Thierry Schneider
    Participant

    Hi Jeff,

    Here is the content of my interfaces configuration file
    The DNS is not working.
    When I make
    ping http://www.google.com
    ping: unknown host http://www.google.com

    # /etc/network/interfaces — configuration file for ifup(8), ifdown(8)

    # The loopback interface
    auto lo
    iface lo inet loopback

    # Wired interface
    auto eth0
    iface eth0 inet static
    address 192.168.1.254
    netmask 255.255.255.0
    network 192.168.1.1
    broadcast 192.168.0.255
    post-up route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.1.1
    dns-nameservers 8.8.8.8 194.230.55.99

    #12968
    Jeff Hatch
    Keymaster

    Thierry,

    Is ppp running and is there a ppp interface instantiated? Second, can you ping 8.8.8.8 or 194.230.55.99? I don’t see a gateway specified in your configuration, so I can’t tell whether the device has any routes to get to the nameservers.

    Jeff

    #12969
    Jeff Hatch
    Keymaster

    I see the “post-up route add”, but am not sure how that works, especially with the unspecified addresses for the net and netmask.

    Jeff

    #12970
    Thierry Schneider
    Participant

    ping 8.8.8.8 is working
    I have no task named ppp or pppd

    I’m connected to the internet through a direct ETH connection

    Thierry

    #12971
    Jason Reiss
    Keymaster

    If you edit /etc/resolv.conf and add your dns servers there

    nameserver 8.8.8.8

    The resolv.conf file will be reset on reboot so you will have to change the file again.

    It seems the dns-nameservers line in /etc/network/interfaces is not being applied on startup.

    #12973
    Bryan Tran
    Moderator

    Hi Thierry,

    Try this and see if it helps?

    Remove this line: dns-nameservers 8.8.8.8 194.230.55.99

    Add these lines: post-up echo “nameserver 8.8.8.8″ > /etc/resolv.conf
    post-up echo “nameserver 194.230.55.99″ >> /etc/resolv.conf

    Thanks,

    BT

    #12974
    Bryan Tran
    Moderator

    Hi Thierry,

    Also, when you issue the ping – omit the http:// – Try do like: ping http://www.google.com from the Conduit.

    Thanks,

    BT

    #12975
    Jason Reiss
    Keymaster

    That worked for me Bryan, thanks.

    Just do not copy and paste from the post as the quotes are not “quotes”.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.