~ubuntu-branches/ubuntu/trusty/giarpfanoa/trusty

« back to all changes in this revision

Viewing changes to src/nonlocaldns.func

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2003-07-11 12:08:43 UTC
  • Revision ID: james.westby@ubuntu.com-20030711120843-kekc8bw6snqz72c4
Tags: 0.1.1
* Fixed module loading.
* Added config to install target.
* Various other bugfixes so that the tool is really useful.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
nonlocaldns() {
 
2
    DRET=""
 
3
    for D in $1 ; do
 
4
        dnsdetermine $D IP
 
5
        if [ ! -z "$RET" ] ; then
 
6
            nonlocalip $RET
 
7
            if [ ! -z "$RET" ] ; then
 
8
                if [ -z "$DRET" ] ; then
 
9
                    DRET=$D
 
10
                else
 
11
                    DRET="$DRET $D"
 
12
                fi
 
13
            fi
 
14
        fi
 
15
    done
 
16
    RET=$DRET
 
17
}