Tuesday Dec 23, 2008

Sybase 15.0.3

Sybase Version 15.0.3 is now available for Solaris (Sparc and x64) Just download the "ASE Enterprise Edition 15.0.3 for Sun Solaris x64 - 64bit" package from:

https://sybase.subscribenet.com

and then do a normal install and you can choose "Developer Edition" from the license options.

Friday Jul 27, 2007

Dhcp info

I have a number of times that (while using DHCP) when I first boot up that DNS isn't working. The resolv.conf file is missing or has the wrong values and I hate having to fix things by hand, so i decided to scipt the DNS setup using the information from DHCP (via the dhcpinfo command.)

#!/bin/ksh

IFDEV=`ifconfig -a|grep ":"|grep -v lo0|cut -f1 -d:|grep -v "ip.tun"|grep -v "inet6"|cut -f1`

GATEWAY=`/sbin/dhcpinfo -i $IFDEV router`
DNSSERVER=`/sbin/dhcpinfo -i $IFDEV DNSserv`
DOMAIN=`/sbin/dhcpinfo -i $IFDEV DNSdmain`
MASK=`/sbin/dhcpinfo -i $IFDEV 1`

echo dev=$IFDEV gateway=$GATEWAY domain=$DOMAIN mask=$MASK

cp /etc/nsswitch.dns /etc/nsswitch.conf

echo "nameserver $DNSSERVER" >/etc/resolv.conf
if [ "$DOMAIN" != "localdomain" ]
then
        echo "domain $DOMAIN" >>/etc/resolv.conf
        echo "search $DOMAIN" >>/etc/resolv.conf
fi

The logic for figuring which interface to use isn't very robust, but it works in all the setups I use.

About

oz

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today