De acordo com as Leis 12.965/2014 e 13.709/2018, que regulam o uso da Internet e o tratamento de dados pessoais no Brasil, ao me inscrever na newsletter do portal DICAS-L, autorizo o envio de notificações por e-mail ou outros meios e declaro estar ciente e concordar com seus Termos de Uso e Política de Privacidade.

DNS - Determinando a ordem de pesquisa (AIX)

Colaboração: Rubens Queiroz de Almeida

Data de Publicação: 10 de Junho de 1997

Sob o AIX, o usuário pode especificar se deseja se o serviço de resolução de nomes seja feito primeiramente consultando arquivos locais (/etc/hosts), DNS (Domain Name Service) ou NIS.

Para isto existem duas alternativas; a primeira delas consiste em se criar um arquivo denominado /etc/netsvc.conf e incluir uma linha do tipo:

  hosts = local,bind

O exemplo acima indica que primeiramente se deve consultar os arquivos locais, e caso não seja obtida uma resposta, se consulte então o DNS.

A segunda alternativa consiste em se definir uma variável de ambiente, denominada NSORDER, onde se especificam as preferências:

  ksh:	export NSORDER=local,bind
  csh:	setenv NSORDER "local,bind"

A vantagem da definição das variáveis de ambiente consiste no fato de que não é necessária as permissões do superusuário para se alterar o arquivo /etc/netsvc.conf


Pensamento Humorístico :-)

BASTARD OPERATOR FROM HELL #4

It's a thursday, and I'm in a good mood. It's payday. I think I'll take some calls. I put the phone back on the hook. It rings.

"I've been trying to get you for hours!" the voice at the other end screams

"Not, it can't be hours" I say, putting Blade Runner back into it's cover and looking at the back, "it was more like 114 minutes. I was on a long phone call with the big boss, trying to get you users some better facilities"

Hook; Line; and Sinker... "Oh. I'm sorry."

"That's ok, I'm a tolerant person" I make a mental note to change his password to something nasty in the next couple of days.

Humm, I need to know how to rename a file" he says.

Oh dear... Hang on, it's payday isn't it?! I'm in a good mood.

"Sure. You just go 'rm' and the filename"

"Thanks"

"No worries" (Now I'm in a REALLY good mood. I think I just might write that script to make saving impossible on rogue at random times like I've been think- ing about)

The phone rings again.

"Hello?"

"Hi there" I say

"Is this the Operators?"

"Yes it is" I say, nice as pie

"Could you get my printouts out please. I need them urgently, and I printed them over 5 minutes ago"

"Your username?" I ask

He gives it to me, and I write it down for later. "No worries at all!" I say, and head to the printers.

There's a HUUUUUUUGE pile of printouts there, and sure enough, his is at the top of the pile. I pick it up, split it out of the rest and pour our ink- stained cleaning alcohol all over it, run it over a couple of times with the loaded tape trolley then slam it in the tape safe door some times as well.

Beautiful.

"Here's your printout" I say "Sorry about the delay, we've got a few printer problems."

He takes a look and shits himself.

"Well, can I print it again?" he asks, worried

"Sure you can" I say "But no promises, the printer's a bit stuffed today"

"Well can I print it on laser - is that working?"

"Yeah of course, but that'll cost you" I say, oozing compassion for the geek

"It doesn't matter about the cost, THIS IS URGENT!"

I slide-on back into the printer room and put in the toner cartridge we save for special occasions - the one that prints thick black lines down the middle of the page and is all faint on one side. It took me quite a while to make it like that too. The printout shoots through and I bring it out immediately - I don't want to miss this!

"W-w-what's happened to my printout?" he geek-squeals at me. Lucky I wrote that username down - I'm really starting to develop a taste for torture.

"Well nothing. I mean sure, it's a little soiled, but that cartridge has already done 47 thousand pages and been refilled 17 times. It's quite good compared to some we get"

Geek pays up and starts blubbing.

"Hey now. There's no reason to cry! Have you got a disk with your work on it?"

He gives me a box of diskettes and I step inside and run them across the bulk eraser. I come back out again.

"Sorry, I just remembered, our machine is on the fritz, you'll have to take these to the other side of campus to the machine there, it'll print them ok, and it had a brand-new toner yesterday."

"GREAT!"

"No worries. Oh, and hold the disks above your head the whole way there, the earth's magnetic field is particularly strong today."

"Huh?"

"No arguements, just do it."

He wanders off, hand held high. Shit I hate myself sometimes.

<spt (a) waikato ac nz> (Simon Travaglia)

Adicionar comentário

* Campos obrigatórios
5000
Powered by Commentics

Comentários

Nenhum comentário ainda. Seja o primeiro!


Veja a relação completa dos artigos de Rubens Queiroz de Almeida