The installer not finding (or configuring) a DNS server is no big deal.
The DNS server(s) address should be configured in
You can edit that file (or create it if it doesn't exist) and put the ip address of your desired DNS server in there.
A directive "nameserver" plus single ip address will suffice, on the first and only line in the file, fully left justified.
For example to use Google's DNS server which is at 8.8.8.8 simply edit your resolv.conf to be like this:
and reboot your box.
EDIT: Original post was technically incorrect, edited post to correct my mistake.
Last edited by hicksd8; 11-03-2018 at 05:22 PM..
Reason: Technical correction: include "nameserver"
Hi,
Iam calling a C program from a Unix shell script. The (C) program reads encrypted username/password from a text file , decrypts and returns the decrypted string.
Is there any way i can return the decrypted string to Unix shell program.
My shell script uses the output of the program to... (11 Replies)
Hi all,
In my application i am trying to select some text & then give it to print. for this i am opening a stream using popen & then later closing using pclose.
Now this is working fine in my environment (solaris) but the pclose function is failing at my clients m/c. Even though print is... (3 Replies)
Hi,
I'm having a requirement where I need to call a C program from a shell script and return the value from the C program to shell script.
I refered a thread in this forum. But using that command in the code, it is throwing an error
clear_text_password=$(get_password)
Error: bash:... (24 Replies)
Hi all,
I am very new to BASH shell programming. I need to return an integer from a function to the caller function. I did this:
but it keeps giving me wrong return:
Can someone help me out here, please?
Thanks (2 Replies)
Hi
Need some help, bit of a noobie here.
This command work perfectly with unix. returns a value of 1 which is what i want.
ps -eo user,comm |grep -v grep |grep -c /path to file
When i run the same command on a linux server it returns a value of 0.,
something maybe wrong with the command.... (4 Replies)
i have an oracle function which returns two values, one is the error message if the function encounters anything and another one which returns a number
i need to capture both
and pass it on to unix shell script
how to do it (2 Replies)
Dear Friends,
I need your help once more.
I want to write a simple select as follows
select amount from books
where sr=1234
However, if value of "Amount" is negative then it should print it as follows.
"3000-" and not as "-3000"
Can you help me in this?
Waiting for reply
Anu. (2 Replies)
Hi All,
My program flow is as below
Windows batch -- > Cygwin batch --> zsh script
There are multiple Cygwin batch scripts that are called from Windows batch file . But when i am executing the first cygwin batch script the control goes to the zsh file and executes and stoping from... (1 Reply)
Hello All,
I have a UNIX script which will prepare anonymous oracle pl/sql block in a temporary file in run time and passes this file to sqlplus as given below.
cat > $v_Input_File 2>>$v_Log << EOF
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION FORCE PARALLEL DML PARALLEL 16';
EXECUTE... (1 Reply)
Hello All,
I have exactly same issue @vikas_trl had in following link:
https://www.unix.com/shell-programming-and-scripting/259854-control-not-returning-sqlplus-calling-unix-shell-script.html
I wonder if he or somebody else could find the issue's cause or the solution.
Any help would... (4 Replies)
Discussion started by: RicardoQ
4 Replies
LEARN ABOUT ULTRIX
resolv.conf
resolv.conf(5) File Formats Manual resolv.conf(5)Name
resolv.conf - resolver configuration file
Description
The resolver configuration file, contains information that the resolver routines read the first time they are invoked by a process. The
resolver file contains ASCII text and lists the name-value pairs that provide various types of resolver information.
The file is required if your system is running BIND. This file must contain the BIND domain name for the local area network. If your sys-
tem is a BIND client, this file must also contain nameserver entries.
There are two entry formats for the file:
domain binddomain
This line specifies the default domain to append to local host names. If no domain entries are present, the domain returned by
after the first dot (.) is used. If the host name does not contain a domain, the root domain is assumed.
nameserver address
In this entry, the address is the IP address, in dot notation, of the BIND server that should be queried to resolve host name and
address information. You should have at least one name server listed. Two or more name servers reduces the possibility of inter-
rupted BIND service in the event that one of the servers is down. You can list up to (10) name servers. If more than one server is
listed, the resolver library queries you to try them in the order listed. If no name server entries are present, the default is to
use the name server on the local machine.
The algorithm used is to try a name server, and, if the query times out, to try the next, until out of name servers or the query is
resolved. The last step is to repeat trying all the name servers until a maximum number of retries has been made or the query has
been resolved.
The name value pair must appear on a single line, and the keyword or must start each line.
Examples
The following is an example of a file:
;
; Data file for a client
;
domain cities.us
nameserver 128.11.22.33
Lines beginning with a semicolon (;) are comment lines.
FilesSee Alsogethostname(2), resolver(3), named(8)
Guide to the BIND Service
resolv.conf(5)