WebOS network configuration files

From WebOS Internals
Revision as of 18:45, 13 January 2012 by Yannick56 (talk | contribs) (more links)
Jump to navigation Jump to search

Configuration in files

Network configuration files from webOS 2.1.0 .

By default, webOS use configuration from dnsmasq process

  • /etc/dnsmasq.palm.conf , in this file, only several parameters are enabled :
# Never forward plain names (with a dot or domain part)
# Never forward addresses in the non-routed address spaces.
# Change this line if you want dns to get its upstream servers from
# somewhere other that /etc/resolv.conf 
# By  default,  dnsmasq  will  send queries to any of the upstream
# servers it knows about and tries to favour servers to are  known
# to  be  up.  Uncommenting this forces dnsmasq to try each query
# with  each  server  strictly  in  the  order  they   appear   in
# /etc/resolv.conf
# If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
# files for changes and re-read them then uncomment this.
# If you want dnsmasq to listen for requests only on specified interfaces
# (and the loopback) give the name of the interface (eg eth0) here. 
# Repeat the line for more than one interface.
# Include a another lot of configuration options.
  • /etc/hosts.conf
order hosts,bind
multi on
  • /etc/hostname
  • /etc/hosts	localhost.localdomain		localhost	palm-webos

  • /etc/nss_mdns.conf
# Default configuration file for nss_mdns
# Applicable domains
domain local
domain 254.169.in-addr.arpa
domain 8.e.f.ip6.int
domain 9.e.f.ip6.int
domain a.e.f.ip6.int
domain b.e.f.ip6.int
domain 8.e.f.ip6.arpa
domain 9.e.f.ip6.arpa
domain a.e.f.ip6.arpa
domain b.e.f.ip6.arpa

  • /etc/nsswitch.conf
# /etc/nsswitch.conf
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd:         compat
group:          compat
shadow:         compat
hosts:          files mdns dns
networks:       files
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:       nis
  • /etc/PmWiFiDhclient.conf
request subnet-mask, broadcast-address, time-offset, routers,

domain-name, domain-name-servers, host-name;

timeout 15;
retry 30;
reboot 10;
initial-interval 1;
script "/etc/PmWiFiDhclient-script";
  • /etc/resolv.conf : nothing

  • /etc/dhcp/dhclient.conf
request subnet-mask, broadcast-address, time-offset, routers,

domain-name, domain-name-servers, host-name, netbios-name-servers, netbios-scope;

  • /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
iface atml0 inet dhcp
# Wired or wireless interfaces
iface eth0 inet dhcp
iface eth1 inet dhcp
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static

address netmask network gateway metric 40

# Temporarily add support for old IP address
# and automatically bring the interface up
auto usb0:1
iface usb0:1 inet static

address netmask network

# Bluetooth networking
iface bnep0 inet dhcp
  • /etc/network/options

External links