Questions tagged [alias]

In computer sciences, an alias is a name which usually designates an already-named reference.

Aliases are names used to designate objects, items and settings which already possess a name. In *nix systems, they usually serve as :

  • Hostnames ; a machine possesses a unique hostname, which can be surrounded by aliases. On a Linux system, you can find your hostname by typing hostname, whereas the /etc/hosts file might contain other aliases for the IP representation of your machine on its network interfaces.

  • Users ; on *nix systems, each user has a given name, registered in the /etc/passwd file. However, for some other purposes such as email processing, it might be useful to create aliases for users. This can be done in the /etc/aliases file. (e.g. root is usually aliased as the postmaster).

  • Shell commands ; on *nix systems, it is possible to set an alias referencing a command/program (with possible options and arguments). The most common one is probably ll, which designates ls -l (long list). An alias can be created using the alias (man page) command, and destroyed thanks to the unalias bash utility (man page).

One could also consider UNIX links as an implementation of aliases for files (in the UNIX meaning). See ln for more information (man page).

Each application handles its aliases as it wishes to. Some don't even implement this possibility, and expect the administrator to use the real resources names. Please refer to the applications' documentation for more information on specific cases.

332 questions
1
vote
1 answer

Hotstrings on a bash console

I can do things like this to alias often used things alias iii='sudo yum install' and that works fine, but it's nice to be able to expand a command on the command line as I use it. For sure I can type alias to show all of the aliases, and I can even…
YorSubs
  • 135
  • 7
1
vote
1 answer

Unable to use alias name with powershell

I have created an CNAME alias record (PublicShare) for one of our servers (KWT-SRV01) in Windows Server DNS. Unfortunately i am unable to use it in powershell "-path" attribute. For example, this works just fine New-vm -ComputerName KUW-SRV04…
Aboodnet
  • 63
  • 5
1
vote
2 answers

CNAME is not acting as an Alias on Cloudflare

I would like to display the same content of: example.com if someone visits example.net I researched and it seems to be possible by simply setting up a CNAME record on example.net that is pointing to example.com. I did exactly that, and this is how…
0
votes
1 answer

How do CNAME Flattening, ANAME or ALIAS records work?

I found explanations by Cloudflare and DNS Made Easy quite vague on the implementation of these records - it was something about IP address caching. Do those records only retrieve A and AAAA records of a target domain name? Could you explain in…
t7e
  • 161
  • 1
  • 7
0
votes
0 answers

Postfix forward mails to external domains as (inline) bounce

My problem: I own a postfix server with several Aliases on it. For example: info@my.tld => abc@gmail.com If I now send a email from def@gmail.com to info@my.tld it get's forwarded to abc@gmail.com But then Google sees the information: From:…
philipp
  • 101
  • 3
0
votes
0 answers

Masking URL in Address Bar in IIS

I am not an expert in IIS and would really appreciate your help if this is something that can easily be resolved. We have a web server on an intranet domain to which users are directed by the DNS when they go to https://application.intranet.com. …
0
votes
1 answer

apache intermitently fails to resolve Alias directive

we have a set up where main site (wordpress) is running on the server, all additional mini sites that should appear within the main one, but not served by wordpress are configured as Alias'es: Alias "/toolbox/some-application-directory"…
Auris
  • 311
  • 1
  • 3
  • 14
0
votes
1 answer

How to create an alias that uses a value and grep on a remote server?

I need help, I can't create an alias with a variable to grep a file on a remote server. I have tried: alias searchword="ssh -t user@server "grep -i \"$1\" /root/file.txt\"" alias search="ssh -t user@server 'grep -i $1 '\'"/root/file.txt\'" If I…
xxmlud
  • 3
  • 3
0
votes
1 answer

Postfix header conditional rewrite

in my mail server I have a mailbox me@mrtsolutions.it and an alias ciao@mrtsolutions.it which send all to me@gmail.com. Now when I send from user@gmail.com an email to ciao@mrtsolutions.it, I receive the mail in me@gmail.com. Now I would like to…
0
votes
1 answer

How to use Veeam to recover locally-hosted Exchange mailbox alias to implement on Exchange Online

I've inherited an IT department after just 1 year in it, during which the 30-year sole-IT person retired, and his replacement, who hired me, left for a remote position. Shortly before he left, Veeam was implemented as our backup solution, and we…
Josh M.
  • 1
  • 2
0
votes
1 answer

Should I set up my Postfix send-only server to send as a subdomain?

Scenario: I own the domain example.com. I am signed up with an email provider, and configured my account as a catchall for *@example.com. I use the email dude@example.com. I have a VPS running Ubuntu 18.04, which will host example.com. On the VPS,…
rayhinton
  • 3
  • 3
0
votes
1 answer

Postfix How to send mail in behalf of an alias

I'm using postfix as a mail relay in a very simple setup, mostly with aliases, forwarding mails to GMail. My main goal with this is to minimize the need for mailboxes on my server. Let's assume I have the following alias bob@mydomain.tld ->…
mefiX
  • 101
  • 2
0
votes
1 answer

Replace explicit `virtual_alias_domains` by domains in `virtual_alias_maps`

I have a working Postfix config with some local mailboxes, some local aliases and a handful of purely virtual alias domains. Because I find it tedious to add all to virtual_alias_domains I'm asking: How to define them by simply using them in…
Daniel Böhmer
  • 271
  • 2
  • 13
0
votes
1 answer

Source bash.rc / aliasses from external file (LEMP)

I'm running several LEMP VMs with mostly identical setups. Each of these VMs has a /etc/profile.d/00-aliases.sh containing a bunch of aliasses and functions to run on the server. Now, whenever I make a change to those aliasses/functions I have to…
Asitis
  • 97
  • 8
0
votes
2 answers

Postfix Alias issues

I am having an issue with setting up an alias "support-notify" in Postfix. Recipient address rejected: Access denied; I am running Postfix with OpenDKIM, OpenDMARC, Policyd-SPF, and Dovecot on Ubuntu 18.04 LTS. The map looks like this in…